SMAHB04900_[자동판정]환자별 문진등록.xrw 102 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 :
  4. * 설 명 :
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 :
  8. * 수정이력 : fRetriveReportQuryClsf
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
  13. <xhtml:head>
  14. <xhtml:title>[자동판정]환자별문진등록</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <acptlist>
  20. <item>
  21. <statflag/>
  22. <inqrstatcd/>
  23. <inqrrptidnm/>
  24. <hngnm/>
  25. <pid/>
  26. <sex/>
  27. <age/>
  28. <hopedd/>
  29. <pkgnm/>
  30. <cmpynm/>
  31. <judgdrid/>
  32. <addtestnm/>
  33. <judgdd/>
  34. <judgwaittermdd/>
  35. <rsltcnstdrid/>
  36. <rsltcnstrsrvdd/>
  37. <rsltcnstflag/>
  38. <diagnm/>
  39. <sickcd/>
  40. <cnstcnts/>
  41. <prnttims/>
  42. <prntrid/>
  43. <inqrremark/>
  44. <email/>
  45. </item>
  46. </acptlist>
  47. <patinfo>
  48. <statflag/>
  49. <inqrstatcd/>
  50. <hngnm/>
  51. <pid/>
  52. <sex/>
  53. <age/>
  54. <hopedd/>
  55. <pkgnm/>
  56. <addtestnm/>
  57. <inqrremark/>
  58. <email/>
  59. <savetable/>
  60. </patinfo>
  61. <amitlist/>
  62. </main>
  63. <send_04900>
  64. <srchdrid/>
  65. <srchfromdd/>
  66. <srchtodd/>
  67. <srchhealexamflag/>
  68. <srchhealexamdetlflag/>
  69. <srchrtimeyn/>
  70. <srchrsltendyn/>
  71. <srchjudgstatflag/>
  72. <srchrsltcnststatflag/>
  73. <srchstatflag/>
  74. <srchcmpyyn/>
  75. <srchinstcd/>
  76. <srchpid/>
  77. <srchhngnm/>
  78. <srchlangflag/>
  79. <savedata>
  80. <amitlist/>
  81. </savedata>
  82. <srchhealexamplacecd/>
  83. <inqrlist>
  84. <wkdate/>
  85. <flag/>
  86. <instcd/>
  87. <inqrrptid/>
  88. <rptclsf/>
  89. <rsrvdd/>
  90. <rsrvno/>
  91. <healexamflag/>
  92. <healexamdetlflag/>
  93. <inqrstatcd/>
  94. <userid/>
  95. <sex/>
  96. </inqrlist>
  97. <histdata>
  98. <instcd/>
  99. <rsrvdd/>
  100. <rsrvno/>
  101. <inqrstatcd/>
  102. <inqrcreatdd/>
  103. <inqrcreatid/>
  104. <inqrenddd/>
  105. <inqrendid/>
  106. <inqrrptid/>
  107. <userid/>
  108. </histdata>
  109. </send_04900>
  110. <init>
  111. <baseinfo>
  112. <statlst/>
  113. <hedetlflaglst/>
  114. <drlst>
  115. <itemdr/>
  116. </drlst>
  117. <rsltcnstflaglst/>
  118. <healexamplacelst/>
  119. </baseinfo>
  120. <A0008list>
  121. <A0008>
  122. <cdnm/>
  123. <cdid/>
  124. </A0008>
  125. </A0008list>
  126. <langlst/>
  127. </init>
  128. <temp/>
  129. <userinfo>
  130. <instcd/>
  131. <userid/>
  132. </userinfo>
  133. <temp2>
  134. <amitlist/>
  135. </temp2>
  136. <msg/>
  137. <point001007000>
  138. <p537/>
  139. <p538/>
  140. <p539/>
  141. <p540/>
  142. <p541/>
  143. <p542/>
  144. <p543/>
  145. <psum_row/>
  146. </point001007000>
  147. </root>
  148. </instance>
  149. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  150. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  152. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  153. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  154. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  155. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  156. <script type="javascript" src="../../../ast/healexamautojudgweb/js/AJDG001.js"/>
  157. <script type="javascript" ev:event="xforms-ready">
  158. <![CDATA[
  159. fDefaultSubmit();
  160. fDefaultSet(); //기본 데이터를 셋팅한다.
  161. if(checkOpener()){ //팝업이면 데이터 셋팅을 변경한후에 조회
  162. var SMAHB04900_PARM = opener.javascript.getParameter("SMAHB04900_PARM");
  163. var array_parm = SMAHB04900_PARM.split("▦");
  164. model.makeValue("/root/send_04900/srchhealexamflag" , array_parm[1]);
  165. model.makeValue("/root/send_04900/srchhealexamdetlflag" , array_parm[2]);
  166. model.makeValue("/root/send_04900/srchfromdd" , array_parm[3] );
  167. model.makeValue("/root/send_04900/srchtodd" , array_parm[3] );
  168. model.makeValue("/root/send_04900/srchpid" , array_parm[6] );
  169. btn_search.dispatch("DOMActivate"); //조회
  170. if(getNodesetCount("/root/main/acptlist/item") > 1){ messageBox("환자의 문진 내역이 2건 이상입니다") ; return false;
  171. }else if(getNodesetCount("/root/main/acptlist/item") == 0){messageBox("환자의 문진 내역이 없습니다.") ; return false;
  172. }else{
  173. grd_acptlist.select(1,1) = true;
  174. grd_acptlist.dispatch("ondblclick");//문진입력 리스트에서 첫번째 로우 클릭
  175. }
  176. if(array_parm[8] == 'Y'){//저장버튼들 비활성화
  177. btn_gubu.disabled = true;
  178. btn_updt.disabled = true;
  179. btn_savepatinfo.disabled = true;
  180. button1.dispatch("onclick"); }
  181. }else{ //팝업이아닐때
  182. fGetAcptList();
  183. }
  184. model.refresh();
  185. ]]>
  186. </script>
  187. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  188. <submission id="TRZBC00101"/>
  189. <submission id="TRAHB04201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_04900/inqrlist" resultref="/root/init/langlst"/>
  190. <submission id="TRAHB01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_05100" replace="instance" resultref="/root/init/baseinfo/drlst"/>
  191. <submission id="TRAHB04901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_04900" replace="instance" resultref="/root/main/acptlist"/>
  192. <submission id="TRAHB04702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_04900/inqrlist" resultref="/root/init/rptqrcl"/>
  193. <submission id="TRAHB04902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_04900/inqrlist" resultref="/root/main/amitlist"/>
  194. <submission id="TXAHB04901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_04900/savedata/amitlist" resultref="/root/temp"/>
  195. <submission id="TRAHB03805" mediatype="application/x-www-form-urlencoded" method="post"/>
  196. <submission id="TXAHB04903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_04900/inqrlist" resultref="/root/temp"/>
  197. <submission id="TXAHB04904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_04900/histdata"/>
  198. <submission id="TXAHB04905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patinfo" resultref="/root/msg"/>
  199. <submission id="TRAHA00001"/>
  200. </model>
  201. <script type="javascript">
  202. <![CDATA[
  203. function fDefaultSubmit() {
  204. model.makeValue("/root/send_04900/srchhealexamflag" , 'C');
  205. model.makeValue("/root/send_04900/srchcond", "J");
  206. submit("TRAHB01504");
  207. addComboItem( "cmb_drid" , "전체", "");
  208. zbcfGetCodeList( new Array("A0069","A0107", "A0123")
  209. , new Array( "/root/init/baseinfo/hedetlflaglst" //건진구분
  210. , "/root/init/baseinfo/statlst" //상태
  211. , "/root/init/baseinfo/rsltcnstflaglst" )//상담방법
  212. );
  213. submit("TRZBC00101");
  214. fGetHealexamCodeList( new Array("A0008"),
  215. new Array("/root/init/A0008list" ) );
  216. healGetCodeList( new Array("S600","S600")
  217. , new Array("/root/init/baseinfo/healexamplacelst"
  218. ,"/root/init/baseinfo/healexamplacecd") );
  219. }
  220. function finit() {
  221. model.resetInstanceNode("/root/send_04900/histdata");
  222. model.resetInstanceNode("/root/send_04900/inqrlist");
  223. // model.resetInstanceNode("/root/send_04900");
  224. model.resetInstanceNode("/root/main/patinfo");
  225. model.resetInstanceNode("/root/main/amitlist");
  226. model.resetInstanceNode("/root/init/rptqrcl");
  227. }
  228. function fDefaultSet() {
  229. //유저에 따라 판정의셋팅
  230. var sUserInfosS = getUserInfos();
  231. sUserInfosS = sUserInfosS + "|";
  232. var UserInfosS_Array = sUserInfosS.split("|");
  233. var cnt_userid = UserInfosS_Array[0]; //사용자번호
  234. model.setValue("/root/userinfo/userid", UserInfosS_Array[0]);
  235. model.setValue("/root/userinfo/instcd", UserInfosS_Array[6]);
  236. var drnm = model.getValue("/root/init/baseinfo/drlst/itemdr[drid = '" + cnt_userid +"']/drnm");
  237. if(drnm != ""){
  238. // 의사이면 한달
  239. model.setValue("/root/send_04900/srchdrid",cnt_userid); //의사 아이디 셋팅
  240. model.setValue("/root/send_04900/srchfromdd",(getCurrentDate().toDate().getAddDate(-1, 'M')).getDateFormat("YYYYMMDD")); //한달전으로 셋팅
  241. model.setValue("/root/send_04900/srchtodd",getCurrentDate()); //금일로 셋팅
  242. //건진조회기본값 셋팅
  243. model.setValue("/root/send_04900/srchrtimeyn",'Y'); //검사중
  244. model.setValue("/root/send_04900/srchrsltendyn",'Y'); //결과입력중
  245. model.setValue("/root/send_04900/srchstatflag",'H'); //판정대기
  246. }else{
  247. // 의사가 아니면 한달
  248. model.setValue("/root/send_04900/srchfromdd",getCurrentDate()); //금일로 셋팅
  249. model.setValue("/root/send_04900/srchtodd",getCurrentDate()); //금일로 셋팅
  250. model.setValue("/root/send_04900/srchdrid",""); //의사 아이디 셋팅 료
  251. //건진조회기본값 셋팅
  252. model.setValue("/root/send_04900/srchrtimeyn",'Y'); //검사중
  253. model.setValue("/root/send_04900/srchrsltendyn",'Y'); //결과
  254. model.setValue("/root/send_04900/srchstatflag",'H'); //판정대기
  255. model.setValue("/root/send_04900/srchjudgstatflag",'N Y'); //판정중, 판정완료
  256. }
  257. //건진종류셋팅
  258. model.setValue("/root/send_04900/srchinstcd",UserInfosS_Array[6]);
  259. model.setValue("/root/send_04900/srchhealexamflag",'C');
  260. model.setValue("/root/send_04900/srchhealexamdetlflag",'C01');
  261. // model.refresh();
  262. }
  263. //문진입력 리스트 조회
  264. function fGetAcptList(){
  265. submit("TRAHB04901",false);
  266. }
  267. // ----------------------------------------------------
  268. // 문진분류 조회(콤보박스)
  269. // ----------------------------------------------------
  270. function fGetInqrCdList(){
  271. model.setValue("/root/send_04900/inqrlist/flag","QRFM");
  272. model.setValue("/root/send_04900/inqrlist/wkdate" , model.getValue("/root/main/patinfo/hopedd") );
  273. model.setValue("/root/send_04900/inqrlist/instcd" , model.getValue("/root/send_04900/srchinstcd") );
  274. model.setValue("/root/send_04900/inqrlist/rsrvdd" , model.getValue("/root/main/patinfo/rsrvdd") );
  275. model.setValue("/root/send_04900/inqrlist/rsrvno" , model.getValue("/root/main/patinfo/rsrvno") );
  276. model.setValue("/root/send_04900/inqrlist/inqrrptid" , model.getValue("/root/main/patinfo/inqrrptid") );
  277. model.setValue("/root/send_04900/inqrlist/healexamflag" , model.getValue("/root/send_04900/srchhealexamflag") );
  278. model.setValue("/root/send_04900/inqrlist/healexamdetlflag" , model.getValue("/root/send_04900/srchhealexamdetlflag") );
  279. model.setValue("/root/send_04900/inqrlist/sex" , model.getValue("/root/main/patinfo/sex") );
  280. submit("TRAHB04201",false);
  281. }
  282. // ----------------------------------------------------
  283. // 이력생성
  284. // ----------------------------------------------------
  285. function fHistSaveData(inqrstatcd){
  286. model.resetInstanceNode("/root/send_04900/histdata");
  287. model.setValue("/root/send_04900/histdata/instcd",model.getValue("/root/main/patinfo/instcd"));
  288. model.setValue("/root/send_04900/histdata/userid", model.getValue("/root/userinfo/userid"));
  289. model.setValue("/root/send_04900/histdata/rsrvdd",model.getValue("/root/main/patinfo/rsrvdd"));
  290. model.setValue("/root/send_04900/histdata/rsrvno",model.getValue("/root/main/patinfo/rsrvno"));
  291. model.setValue("/root/send_04900/histdata/inqrstatcd", inqrstatcd);
  292. if(inqrstatcd =='G'){ //거부
  293. }else{
  294. model.setValue("/root/send_04900/histdata/inqrcreatdd", getCurrentDate()); //문진생성일자
  295. model.setValue("/root/send_04900/histdata/inqrcreatid", model.getValue("/root/userinfo/userid")); //문진생성자
  296. model.setValue("/root/send_04900/histdata/inqrrptid", model.getValue("/root/send_04900/inqrlist/inqrrptid")); //문진지종류
  297. if(inqrstatcd == 'Y'){ //문진을 모두 입력했으면
  298. model.setValue("/root/send_04900/histdata/inqrenddd", getCurrentDate()); //문진최종수정일
  299. model.setValue("/root/send_04900/histdata/inqrendid", model.getValue("/root/userinfo/userid")); //문진최종수정자
  300. }//if end
  301. }//else end
  302. submit("TXAHB04904",false);
  303. }
  304. // ----------------------------------------------------
  305. // 문진지별 문진분류 조회(트리)
  306. // ----------------------------------------------------
  307. function fRetriveReportQuryClsf()
  308. {
  309. submit("TRAHB04702",false);
  310. }
  311. // ----------------------------------------------------
  312. // 문진지별 질문내용 조회
  313. // ----------------------------------------------------
  314. function fRetriveQuryReport(clsfid){
  315. model.setValue("/root/send_04900/inqrlist/rptclsf", clsfid);
  316. submit("TRAHB04902",false);
  317. //질문내용 변경 체크를 비교하기위해 내역을 카피해둔다.
  318. copyNodesetType("/root/temp2/amitlist" , "/root/main/amitlist" , "replace");
  319. model.refresh();
  320. var lastupdtrid = ""; var chkbox = "";
  321. for(var i = 1; i < grd_amit.rows; i++) {
  322. lastupdtrid = grd_amit.valueMatrix(i, grd_amit.colRef("amit_lastupdtdt"));
  323. chkbox = grd_amit.valueMatrix(i, grd_amit.colRef("amit_chkbox"));
  324. if(chkbox == "Y" && lastupdtrid == ""){//최초에 내역 불러왔을때 기본값으로 체크된걸 저장 해줘야함.
  325. grd_amit.rowStatus(i)=1; //없던게 생겼으므로 인서트
  326. }
  327. }//for end
  328. // if(grd_acptlst.valueMatrix(grd_acptlst.row,grd_acptlst.colRef("inqrflag"))=="2" ){
  329. // grd_amit.disabled="true";
  330. // }else{
  331. // grd_amit.disabled="false";
  332. // }
  333. }
  334. // ----------------------------------------------------
  335. // 질문에 대해서 disabled
  336. // ----------------------------------------------------
  337. function fCheckTranFlag() {
  338. for(var i = 1; i < grd_amit.rows; i++) {
  339. qestflag = grd_amit.valueMatrix(i, grd_amit.colRef("amit_qestflag"));
  340. if(qestflag == "Q" || qestflag == "E" ) {
  341. grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_chkbox")) = "true";
  342. grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw1")) = "true";
  343. grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw2")) = "true";
  344. grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw3")) = "true";
  345. initGridStyle("grd_amit");
  346. setRowStyle("grd_amit" , "2" , "하위문제" , "amit_qestflagnm" ,"equal");
  347. setRowStyle("grd_amit" , "4" , "문제" , "amit_qestflagnm" ,"equal");
  348. setRowStyle("grd_amit" , "3" , "설명" , "amit_qestflagnm" ,"equal");
  349. setRowStyle("grd_amit" , "5" , "하위문제답" , "amit_qestflagnm" ,"equal");
  350. setRowStyle("grd_amit" , "6" , "하위문제" , "amit_qestflagnm" ,"equal"); // 아직 사용안함.
  351. setRowStyle("grd_amit" , "7" , "하하위문제답" , "amit_qestflagnm" ,"equal"); //아직 사용안함.
  352. }else {
  353. grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_chkbox")) = "false";
  354. grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw1")) = "false";
  355. grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw3")) = "false";
  356. grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw4")) = "false";
  357. }//if end
  358. grd_amit.cellAttribute("input", i, grd_amit.colRef("amit_essnchoiflag")) = "output";
  359. }//for end
  360. }
  361. // --------------------------------------------------------------------------------------------------------------------------------------
  362. //화면 그리드 조절
  363. // -----------------------------------------------------------------------------------------------------------------------------------
  364. function fGridWidthcontrol(sGrd,sStatus){
  365. // 질문 내역 그리드를 늘릴때
  366. if ( sGrd == "amit") {
  367. if(sStatus == "W") {
  368. grd_amit.attribute ("width") ="1178px";
  369. grd_amit.attribute("left") ="0px"
  370. // grd_acptlst.attribute("width")="309px"
  371. grd_acptlist.attribute("height")="120px"
  372. trvclsf.visible=false;
  373. }
  374. }
  375. if(sStatus == "N") {
  376. trvclsf.visible = true;
  377. grd_amit.attribute ("width") ="683px";
  378. grd_amit.attribute("left") ="495px"
  379. // grd_acptlst.attribute("width")="309px"
  380. grd_acptlist.attribute("height")="620px"
  381. }
  382. if(sStatus == "A") {
  383. if( button1.value == "전체보기" ){
  384. trvclsf.visible = true;
  385. trvclsf.attribute("left") ="1px"
  386. trvclsf.attribute("top") ="5px"
  387. grd_amit.attribute("top") ="5px"
  388. grd_amit.attribute("left") ="181px"
  389. grd_amit.attribute ("width") ="1000px";
  390. grd_amit.attribute("height") ="700px"
  391. grd_acptlist.visible=false;
  392. button1.value = "부분보기";
  393. button1.attribute("top") ="520px"
  394. button1.attribute("left") ="1px"
  395. }else if( button1.value == "부분보기" ){
  396. trvclsf.visible = true;
  397. trvclsf.attribute("left") ="310px"
  398. trvclsf.attribute("top") ="235px"
  399. grd_amit.attribute("top") ="237px"
  400. grd_amit.attribute("left") ="495px"
  401. grd_amit.attribute ("width") ="683px";
  402. grd_amit.attribute("height") ="478px"
  403. grd_acptlist.visible=true;
  404. button1.value = "전체보기";
  405. button1.attribute("top") ="212px"
  406. button1.attribute("left") ="670px"
  407. }
  408. }
  409. }//fGridWidthcontrol 그리드 조절 끝
  410. //===================================================================================
  411. //@desc : Grid의 선택된 값에 대한 RowStatus 변경, 단일입력 항목 확인
  412. //=====================================================================================
  413. function fQueryRptGridCheck(rowid){
  414. // 단일항목 선택인 경우 다른 같은 질문에 대해
  415. // 다른 답안이 선택 되어 있는가 확인
  416. // 만약 되어 있다면 N로 바꾸고
  417. // 바뀐 ROW또한 상태 값을 변경 해야 한다,,
  418. // 1. 해당로우에 입력형태를 확인
  419. // 2. 입력 형태가 단일이면
  420. // 2-1 질문 ID를 읽는다
  421. // 2-2 그리드를 for로 돌리면서
  422. // 같은 질문 ID인 경우를 확인하고
  423. // check 값인 Y인가를 확인한다
  424. // Y인 행의 값이 현재 넘어온 향의 값과 다르다면
  425. // N로 바꾸고
  426. // fQueryRptGridStatusChk(i)를 호출한다
  427. // 3. 다중인 경우
  428. // 바로 fQueryRptGridStatusChk(rowid)를 호출해서 상태값만 변경한다.
  429. var QuerType;
  430. var Chtype ;
  431. var SelRowQuerId = grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_inqrqestid"));
  432. var SelRowChk = grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_chkbox"));
  433. var ForRowQuerId;
  434. var ForRowChk;
  435. var QuerType;
  436. var RowLevel;
  437. for( var fRow = 1 ; fRow < grd_amit.rows; fRow++){
  438. // 그리드의 질문ID를 가지고 온다
  439. ForRowQuerId = grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_inqrqestid"));
  440. // For Loop에 의한 질문ID와 선택된 Row의 질문ID가 같은 가를 확인한다.
  441. if ( SelRowQuerId == ForRowQuerId) {
  442. // 같은 질문ID의 질문 항목에 있는 유형 중 질문 인것을 파악 한다.
  443. if ( grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_qestflag")) == 'Q') {
  444. // 유형인 질문인 것의 답안 형태를 가지고 온다
  445. QuerType = grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_choitype")) ;
  446. //QuerType = grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_choitype"));
  447. }
  448. // 단일 인지를 파악 한다
  449. if ( QuerType == '2' )
  450. {
  451. // For Loop에 의해 돌아 가는 행의 선택 값을 가지고 온다
  452. ForRowChk= grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_chkbox"));
  453. // 현재 행의 값이 'Y'인지를 파악한다
  454. if ( ForRowChk == 'Y') {
  455. // 선택된 행과 현재의(for loop) 행이 같은 행인지 여부를 파악한다
  456. if ( rowid != fRow ) {
  457. // 선택된 행과 현재의 행이 다른 행인 경우 현재의 행을 N로 선택하고
  458. // 현재의 행의 status를 변경한다.
  459. grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_chkbox")) = 'N' ;
  460. fQueryRptGridStatusChk(fRow);
  461. } else{
  462. // for loop의 행과 선택 행이 같은 행 이므로 Status만 변경한다.
  463. fQueryRptGridStatusChk(fRow);
  464. }
  465. }
  466. }else {
  467. // 단일 선택이 아닌 경우 즉 다중선택인 경우 해당 row의 status를 변경한다
  468. if ( rowid == fRow ) {
  469. fQueryRptGridStatusChk(fRow);
  470. }
  471. }
  472. }
  473. }//for end
  474. }
  475. function fQueryRptGridStatusChk(rowid){
  476. var chkbox = grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_chkbox")); //새 값
  477. var org_chkbox = model.getValue("/root/temp2/amitlist['"+ rowid +"']/amit_chkbox"); //원값
  478. if(chkbox == 'Y' && org_chkbox == 'Y'){
  479. grd_amit.rowStatus(rowid)=2; //전후가 같으면 상태는 없음
  480. }else if(chkbox == 'N' && org_chkbox == 'N'){
  481. grd_amit.rowStatus(rowid)=0; //없던게 생겼으므로 인서트
  482. }else if(chkbox == 'Y' && org_chkbox == 'N'){
  483. grd_amit.rowStatus(rowid)=1; //없던게 생겼으므로 인서트
  484. }else if(chkbox == 'N' && org_chkbox == 'Y'){
  485. grd_amit.rowStatus(rowid)=4; //있던게 없어졌으므로 삭제
  486. }
  487. /*
  488. //넘겨 받은 rowid의
  489. var CheckV1=grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_chkbit"));
  490. //상태비트와 check를 읽는다
  491. var CheckV2=grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_chkbox"));
  492. //상태가 I인 경우
  493. if(CheckV1 == 'I') {
  494. if(CheckV2 =='Y'){
  495. grd_amit.rowStatus(rowid)=1;//check가 Y라면 상태는 입력이고
  496. }else{
  497. grd_amit.rowStatus(rowid)=0;////N라면 조회원래 상태로 변경
  498. }
  499. }else{
  500. //상태가 S인 경우
  501. if(CheckV2 =='N'){
  502. grd_amit.rowStatus(rowid)=4; // N라면 상태값은 삭제
  503. }else{
  504. // Y라면 상태 변화 없음 -> 조회원래 상태로 변경
  505. if ( grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_inqransw"))!="") {
  506. grd_amit.rowStatus(rowid)=2;
  507. } else {
  508. grd_amit.rowStatus(rowid)=0;
  509. }
  510. }
  511. } */
  512. }///fQueryRptGridStatusChk end
  513. //문진 상태를 업데이트 한다.
  514. function fInqrExeStat(){
  515. var sUserInfosS = getUserInfos();
  516. sUserInfosS = sUserInfosS + "|";
  517. var UserInfosS_Array = sUserInfosS.split("|");
  518. var cnt_userid = UserInfosS_Array[0]; //사용자번호
  519. model.setValue("/root/send_04900/inqrlist/userid", cnt_userid);
  520. var rsrvdd = model.getValue("/root/send_04900/inqrlist/rsrvdd");
  521. if(rsrvdd == ""){
  522. messageBox("환자가 선택되지 않았습니다.", "E999");
  523. }
  524. submit("TXAHB04903",false);
  525. }
  526. // 20100723 JHP 처음 조회 했을때 문진지별 질문내용에 계산되는 부분에 처음 계산을 하게끔 계산로직 태운다.
  527. function fFirstSumChk(){
  528. var sex = model.getValue("/root/main/acptlist/item['"+ grd_acptlist.row + "']/sex");
  529. // 20100723 JHP 남자에 해당되는 질환이기에 sex구분 추가
  530. if(sex == "M"){
  531. var sum_point = parseInt(model.getValue("/root/point001007000/p537"))
  532. + parseInt(model.getValue("/root/point001007000/p538") )
  533. + parseInt(model.getValue("/root/point001007000/p539") )
  534. + parseInt(model.getValue("/root/point001007000/p540") )
  535. + parseInt(model.getValue("/root/point001007000/p541") )
  536. + parseInt(model.getValue("/root/point001007000/p542") )
  537. + parseInt(model.getValue("/root/point001007000/p543") )
  538. var row_id = model.getValue("/root/point001007000/psum_row") ;
  539. model.setValue("/root/main/amitlist['"+ row_id + "']/amit_addansw1" , sum_point);
  540. var check_box = model.getValue("/root/main/amitlist['"+ row_id +"']/amit_chkbox");
  541. if(check_box == "Y"){
  542. grd_amit.rowStatus(row_id)=2; //업데이트
  543. }else{
  544. grd_amit.rowStatus(row_id)=1;
  545. model.setValue("/root/main/amitlist['"+ row_id +"']/amit_chkbox" , 'Y');
  546. }
  547. model.refresh();
  548. }
  549. }
  550. // 20100726 JHP 트리뷰 하위구조 있으면 해당 건은 조회하지 않는다.(기존꺼는 주석처리)
  551. function fChkView(){
  552. // 20100726 JHP 트리뷰에서 선택할때 트리뷰 구조에서 하위가 존재하는
  553. // 트리뷰일경우 그것에 해당되는 내용을 조회하지 않고 다음것을 조회 하도록 변경함.
  554. var item = trvclsf.item(trvclsf.selectedIndex);
  555. var iRow = item.index + 1;
  556. var selectitem = trvclsf.item(trvclsf.selectedindex).value;
  557. var chktreeview;
  558. var getajclscd;
  559. var getajclsvalue;
  560. if(model.getValue("/root/init/rptqrcl[" + iRow +"]/trdpth") == 1){
  561. chktreeview = selectitem.substr(0, 3);
  562. chktreeview = chktreeview + "001000";
  563. for(var r = 0; r <= getNodesetCount("/root/init/rptqrcl"); r++){
  564. getajclscd = model.getValue("/root/init/rptqrcl[" + r + "]/ajclscd");
  565. if(chktreeview == getajclscd){
  566. getajclsvalue = getajclscd;
  567. }
  568. }
  569. if(chktreeview == getajclsvalue){
  570. trvclsf.select(trvclsf.selectedindex+1);
  571. fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
  572. grd_amit.refresh();
  573. fCheckTranFlag();
  574. model.refresh();
  575. }else{
  576. fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
  577. grd_amit.refresh();
  578. fCheckTranFlag();
  579. grd_amit.refresh();
  580. }
  581. } else if(model.getValue("/root/init/rptqrcl[" + iRow +"]/trdpth") == 2){
  582. chktreeview = selectitem.substr(0, 6);
  583. chktreeview = chktreeview + "001";
  584. for(var r = 0; r <= getNodesetCount("/root/init/rptqrcl"); r++){
  585. getajclscd = model.getValue("/root/init/rptqrcl[" + r + "]/ajclscd");
  586. if(chktreeview == getajclscd){
  587. getajclsvalue = getajclscd;
  588. }
  589. }
  590. if(chktreeview == getajclsvalue){
  591. trvclsf.select(trvclsf.selectedindex+1);
  592. fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
  593. grd_amit.refresh();
  594. fCheckTranFlag();
  595. model.refresh();
  596. }else{
  597. fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
  598. grd_amit.refresh();
  599. fCheckTranFlag();
  600. grd_amit.refresh();
  601. }
  602. } else if(model.getValue("/root/init/rptqrcl[" + iRow +"]/trdpth") == 3){
  603. chktreeview = selectitem.substr(0, 9);
  604. chktreeview = chktreeview + "001";
  605. for(var r = 0; r <= getNodesetCount("/root/init/rptqrcl"); r++){
  606. getajclscd = model.getValue("/root/init/rptqrcl[" + r + "]/ajclscd");
  607. if(chktreeview == getajclscd){
  608. getajclsvalue = getajclscd;
  609. }
  610. }
  611. if(chktreeview == getajclsvalue){
  612. trvclsf.select(trvclsf.selectedindex+1);
  613. fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
  614. grd_amit.refresh();
  615. fCheckTranFlag();
  616. model.refresh();
  617. }else{
  618. fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
  619. grd_amit.refresh();
  620. fCheckTranFlag();
  621. grd_amit.refresh();
  622. }
  623. } else{
  624. fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
  625. grd_amit.refresh();
  626. fCheckTranFlag();
  627. grd_amit.refresh();
  628. }
  629. }
  630. /*
  631. ===================================================================================
  632. *초기화
  633. * bDetl => true : 건진자별 상세내역만 초기화
  634. =====================================================================================
  635. function fInit(bDetl){
  636. model.removeNodeset(grd_acptlst.nodeset);
  637. model.resetInstanceNode("");
  638. if( bDetl) {
  639. return ;
  640. }
  641. model.resetInstanceNode("/root/main/info/item");
  642. model.refresh();
  643. }
  644. function fgridMergeRow(grd_nm){
  645. var cnt = grd_nm.rows;
  646. var oldnm = "";
  647. var grdnm = "";
  648. var lt = 1; var lb = 1;
  649. for (var i=1 ;i<=cnt ;i++){
  650. if(grdnm == grd_nm.valueMatrix(i,2)){
  651. // grd_nm.valueMatrix(i,1) = "";
  652. } else{
  653. grdnm = grd_nm.valueMatrix(i,2);
  654. grd_nm.mergeByFree(lt,2,i-1,2);
  655. lt = i;
  656. }
  657. }
  658. }
  659. ===================================================================================
  660. ** 조회조건 초기화
  661. =====================================================================================
  662. function fSrchInit(){
  663. cmb_srchhealexamdetlflag.refresh();
  664. cmb_srchhealexamdetlflag.select(0);
  665. var cur_date = getCurrentDate();
  666. model.setValue(ipt_srchfromdd.attribute("ref") , cur_date);
  667. //model.setValue(ipt_srchtodd.attribute("ref") , cur_date);
  668. }
  669. function fgrdImage(grd_nm){
  670. var cnt = grd_nm.rows;
  671. for (var i=1 ;i<=cnt ;i++){
  672. if(grd_nm.valueMatrix(i,grd_nm.colRef("rsltflag"))=="O"){
  673. grd_nm.cellstyle("background-image", i, 5) = "../../../ast/healexamweb/image/si.bmp"
  674. grd_nm.cellstyle("background-position", i, 5) = "center center"
  675. }
  676. }
  677. }
  678. ===================================================================================
  679. *기본코드 내역 가져오기
  680. =====================================================================================
  681. function fGetBasicCdList(){
  682. vHealexamflag = fGetHealExamFlag();
  683. openLoadingBar("기초정보 ") ;//처리중 화면을 오픈한다.
  684. zbcfGetCodeList( new Array("A0069", "A0066","A0110","A0106", "A0107","A0070")
  685. , new Array( "/root/init/baseinfo/hedetlflaglst"
  686. , "/root/init/baseinfo/rslttypelst"
  687. , "/root/init/baseinfo/plceflag"
  688. , "/root/init/baseinfo/inqrflag"
  689. , "/root/init/baseinfo/statlst"
  690. , "/root/init/baseinfo/hedetlflaglst" ) );
  691. submit("TRZBC00101");
  692. //검사실 코드조회
  693. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") );
  694. var cnt = getNodesetCount("/root/init/baseinfo/hedetlflaglst/A0070");
  695. for (var i=0;i<cnt;i++){
  696. var grCd = model.getValue("/root/init/baseinfo/hedetlflaglst/A0070[" + i+"]/cdid");
  697. var grNm = model.getValue("/root/init/baseinfo/hedetlflaglst/A0070[" + i+"]/cdnm");
  698. if(grNm !=""){
  699. model.makeValue("/root/init/baseinfo/hedetlflaglst/A0069["+i+2+"]/cdid" , grCd);
  700. model.makeValue("/root/init/baseinfo/hedetlflaglst/A0069["+i+2+"]/cdnm" , grNm);
  701. }
  702. }
  703. submit("TRAHB01502");
  704. 판정의조회
  705. model.makeNode("/root/send/srchcond" );
  706. model.setValue("/root/send/srchcond", "J");
  707. submit("TRAHB01504");
  708. closeLoadingBar() ;//처리중 화면을 close한다.
  709. }
  710. ===================================================================================
  711. *사용자 부서 정보
  712. =====================================================================================
  713. function fSetSuppDeptcd() {
  714. var dutplcecd = getUserInfo("dutplcecd");
  715. //var selectplcecd = getScreenPrestDeptCd();
  716. model.setValue("/root/send/srchdeptcd" , dutplcecd);
  717. model.setValue("/root/send/srchdeptcd" , dutplcecd);
  718. }
  719. *===================================================================================
  720. *로그인시 권한등록된 검사실 정보 조회
  721. =====================================================================================
  722. function fGetAuthTestRoom() {
  723. fSetSuppDeptcd();
  724. model.setValue("/root/send/srchuserid" , getUserId());
  725. submit("TRAHB01202");
  726. }
  727. // ----------------------------------------------------
  728. // 문진지별 문진분류 조회
  729. // ----------------------------------------------------
  730. function fRetriveReportQuryClsf()
  731. {
  732. model.removeNodeset(grd_amit.nodeset);
  733. model.removeNodeset("/root/disply/rptqrcl");
  734. model.removeNodeset("/root/main/list/amqblist");
  735. submit("TRAHB04702",true);
  736. }
  737. // ----------------------------------------------------
  738. // 문진지별 질문내용 조회
  739. // ----------------------------------------------------
  740. function fRetriveQuryReport(clsfid)
  741. {
  742. model.removeNodeset("/root/main/list/amitlist");
  743. // model.setValue("/root/main/list/amitlist/healexamflag" , model.getValue("/root/main/acptinfo/item/healexamflag") );
  744. // model.setValue("/root/main/condition/wkdate" , model.getValue("/root/main/acptinfo/item/rsrvdd") );
  745. // model.setValue("/root/main/condition/wkdate" , model.getValue("/root/main/acptinfo/item/rsrvno") );
  746. model.setValue("/root/main/condition/rptclsf", clsfid);
  747. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_healexamflag")) = opt_healexamflag.value;
  748. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvdd")) = opt_rsrvdd.value;
  749. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvno")) = opt_rsrvno.value;
  750. // model.copyNode("/root/main/list/amitlist", "/root/main/acptinfo/item");
  751. submit("TRAHB04902",true);
  752. if(grd_acptlst.valueMatrix(grd_acptlst.row,grd_acptlst.colRef("inqrflag"))=="2" )
  753. {
  754. grd_amit.disabled="true";
  755. }
  756. else
  757. {
  758. grd_amit.disabled="false";
  759. }
  760. }
  761. // ----------------------------------------------------
  762. // 질문에 대해서 disabled
  763. // ----------------------------------------------------
  764. function fCheckTranFlag() {
  765. for(var i = grd_amit.fixedRows; i < grd_amit.rows; i++) {
  766. // alert(grd_goodreq.valueMatrix(i, grd_goodreq.colRef("tranflag")));
  767. if(grd_amit.valueMatrix(i, grd_amit.colRef("amit_qestflag")) == "Q") {
  768. grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_chkbox")) = "true";
  769. grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw1")) = "true";
  770. grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw2")) = "true";
  771. grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw3")) = "true";
  772. }
  773. else {
  774. grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_chkbox")) = "false";
  775. grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw1")) = "false";
  776. grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw3")) = "false";
  777. grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_addansw4")) = "false";
  778. }
  779. // else if{(grd_amit.valueMatrix(i, grd_amit.colRef("amit_inqransw")) == "" || (grd_amit.valueMatrix(i, grd_amit.colRef("amit_inqransw")) != "" ))
  780. // {
  781. // grd_amit.cellAttribute("disabled", i, grd_amit.colRef("amit_chkbox")) = "true";
  782. //
  783. // }
  784. }
  785. }
  786. ===================================================================================
  787. *결과입력대상자 가져오기
  788. *건진구분/건진일자/검사실/환자id/단체코드/패키지코드별 조회
  789. =====================================================================================
  790. function fGetRsltPatList(){
  791. openLoadingBar("결과입력 대상 건진자리스트") ;//처리중 화면을 오픈한다.
  792. model.removeNodeset(grd_acptlst.nodeset);
  793. model.resetInstanceNode("/root/main/acptinfo/item");
  794. model.removeNodeset("/root/main/list/amqblist");
  795. model.resetInstanceNode("/root/disply/rptqrcl");
  796. model.resetInstanceNode("/root/disply/langlst");
  797. model.resetInstanceNode("/root/main/condition/inqrrptid");
  798. model.removeNodeset(grd_amit.nodeset);
  799. model.resetInstanceNode("/root/send");
  800. model.setValue("/root/send/srchhealexamdetlflag" , model.getValue("/root/init/send/srchhealexamdetlflag") );
  801. model.setValue("/root/send/srchpid" , model.getValue("/root/init/send/srchpid2") );
  802. model.setValue("/root/send/srchpnm" , model.getValue("/root/init/send/srchpnm") );
  803. model.setValue("/root/send/srchroomcd" , model.getValue("/root/init/send/srchroomcd") );
  804. model.setValue("/root/send/srchfromdd" , model.getValue("/root/init/send/srchfromdd") );
  805. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
  806. model.setValue("/root/send/srchhealexamflag", fGetHealExamFlag());
  807. var examflag= model.getValue("/root/init/send/srchhealexamdetlflag").substr(0,1);
  808. model.makeValue("/root/send/srchhealexamflag",examflag );
  809. model.setValue("/root/send/srchtodd", model.getValue("/root/send/srchfromdd") );
  810. model.makeValue("/root/send/srchstatfg" , model.getValue("/root/init/send/srchstatfg"));
  811. submit("TRAHB04901");
  812. model.makeValue("/root/send/srchclscd", "G");
  813. model.makeValue("/root/send/srchetccd", "G10");
  814. submit("TRAHB00604");
  815. closeLoadingBar() ;//처리중 화면을 close한다.
  816. }
  817. *===================================================================================
  818. @desc :건진일자변경
  819. @param : vDateFg -기간구분(Y-Year, M-Month, D-Day)
  820. vTerm- 기간
  821. =====================================================================================
  822. function fSetOrdDD(vDateFg , vTerm){
  823. if( (vDateFg != "Y" ) && (vDateFg != "M")&& (vDateFg != "D") ) {
  824. return ;
  825. }
  826. var iTerm = parseInt(vTerm);
  827. var isDate = (model.getValue("/root/init/send/srchfromdd")).toDate().getAddDate(iTerm,vDateFg);
  828. model.setValue("/root/init/send/srchfromdd", isDate.getDateFormat('YYYYMMDD'));
  829. ipt_srchfromdd.refresh();
  830. fGetRsltPatList();
  831. }
  832. =============================================================================================================
  833. *결과 내역을 조회하기 위한 조건정보 체크
  834. =============================================================================================================
  835. function fCheckExamInfo(){
  836. var idx = grd_acptlst.row;
  837. if( idx < 1) {
  838. //messageBox("수진자를 ", "C002");
  839. return false;
  840. }
  841. model.copyNode("/root/main/acptinfo/item", grd_acptlst.nodeset + "[" + idx + "]");
  842. //결과내역가져오기
  843. var sNode = grd_acptlst.nodeset + "[" + idx + "]/";
  844. var rsrvdd = model.getValue(sNode + "rsrvdd");
  845. var rsrvno = model.getValue(sNode + "rsrvno");
  846. var pid = model.getValue(sNode + "pid");
  847. var orddd = model.getValue(sNode + "orddd");
  848. var cretno = model.getValue(sNode + "cretno");
  849. var pkgcd = model.getValue(sNode + "pkgcd");
  850. var sex = model.getValue(sNode + "sex");
  851. var inqrprntflag = model.getValue(sNode + "inqrprntflag");
  852. var hopedd = model.getValue(sNode + "hopedd");
  853. if( (pid == "" ) || (orddd=="") || (cretno == "") || (rsrvdd == "") || (rsrvno == "") ){
  854. messageBox("유효하지 않은 데이터 입니다!", "E999");
  855. return false;
  856. }
  857. model.resetInstanceNode("/root/send");
  858. model.setValue("/root/send/srchhealexamdetlflag" , model.getValue("/root/init/send/srchhealexamdetlflag") );
  859. model.setValue("/root/send/srchpnm" , model.getValue("/root/init/send/srchpnm") );
  860. model.setValue("/root/send/srchroomcd" , model.getValue("/root/init/send/srchroomcd") );
  861. model.setValue("/root/send/srchfromdd" , model.getValue("/root/init/send/srchfromdd") );
  862. model.setValue("/root/send/srchasischk" , model.getValue("/root/init/send/srchasischk") );
  863. model.setValue("/root/send/srchrsrvdd" , rsrvdd );
  864. model.setValue("/root/send/srchrsrvno" , rsrvno );
  865. model.setValue("/root/send/srchpid" , pid );
  866. model.setValue("/root/send/srchorddd" , orddd );
  867. model.setValue("/root/send/srchcretno" , cretno );
  868. model.setValue("/root/send/srchhealexamflag" , fGetHealExamFlag() );
  869. model.setValue("/root/send/srchhopedd" , hopedd) ;
  870. var examflag= model.getValue("/root/init/send/srchhealexamdetlflag").substr(0,1);
  871. model.makeValue("/root/send/srchhealexamflag",examflag );
  872. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
  873. model.setValue("/root/send/srchpkgcd" , pkgcd);
  874. model.setValue("/root/send/srchsex" , sex);
  875. //ahafSetScreenTopPatInfo( pid , orddd , cxretno );
  876. }
  877. // --------------------------------------------------------------------------------------------------------------------------------------
  878. //화면 그리드 조절
  879. // -----------------------------------------------------------------------------------------------------------------------------------
  880. function fGridWidthcontrol(sGrd,sStatus)
  881. {
  882. // 질문 내역 그리드를 늘릴때
  883. if ( sGrd == "amit") {
  884. if(sStatus == "W") {
  885. grd_amit.attribute ("width") ="1185px";
  886. grd_amit.attribute("left") ="5px"
  887. // grd_acptlst.attribute("width")="309px"
  888. grd_acptlst.attribute("height")="120px"
  889. trvclsf.visible=false;
  890. }
  891. }
  892. if(sStatus == "N") {
  893. trvclsf.visible = true;
  894. grd_amit.attribute ("width") ="690px";
  895. grd_amit.attribute("left") ="500px"
  896. // grd_acptlst.attribute("width")="309px"
  897. grd_acptlst.attribute("height")="635px"
  898. }
  899. }
  900. *=============================================================================================================
  901. @desc : 종합건진 결과 내역 조회
  902. =============================================================================================================
  903. function fGetRsltInfo(){
  904. model.resetInstanceNode("/root/main/acptinfo/item");
  905. if( fCheckExamInfo() == false ){
  906. model.refresh();
  907. return ;
  908. }
  909. openLoadingBar("검사결과정보 ") ;//처리중 화면을 오픈한다.
  910. fGetInqrCdList(); // 문진내역을 조회한다.
  911. var examflag= model.getValue("/root/init/send/srchhealexamdetlflag").substr(0,1);
  912. model.makeValue("/root/send/srchhealexamflag",examflag );
  913. // if( submit("TRAHR00201") == true ){
  914. // }
  915. closeLoadingBar() ;//처리중 화면을 close한다.
  916. }
  917. =============================================================================================================
  918. @desc : 결과입력 grid 초기상태 setting
  919. =============================================================================================================
  920. function fSetGridInitState(vGrdObj){
  921. if(vGrdObj == null ) return ;
  922. vGrdObj.refresh();
  923. var cnt = vGrdObj.rows;
  924. for( var i = 1 ; i <= cnt ; i++){
  925. * 처음일 경우만 결과값 insert
  926. if( model.getValue( vGrdObj.nodeset + "[" + i + "]/inptflag") == "i" && model.getValue( vGrdObj.nodeset + "[" + i + "]/rslthistseq") == 0)
  927. {
  928. vGrdObj.addStatus(i, "insert");
  929. }
  930. // 기준치에 따른 색깔변경
  931. if("H" == vGrdObj.valueMatrix( i , vGrdObj.colRef("judgrsltcnts") ) ) {
  932. vGrdObj.cellStyle("background-color" , i , vGrdObj.colRef("judgrsltcnts") , i , vGrdObj.colRef("judgrsltcnts")) = "#ff7a85";
  933. }
  934. if("L" == vGrdObj.valueMatrix( i , vGrdObj.colRef("judgrsltcnts") ) ) {
  935. vGrdObj.cellStyle("background-color" , i , vGrdObj.colRef("judgrsltcnts") , i , vGrdObj.colRef("judgrsltcnts")) = "#99ccff";
  936. }
  937. }
  938. vGrdObj.refresh();
  939. }
  940. =====================================================================================================================
  941. @desc : 건진일자의 전체 외래연동결과 가져오기
  942. ====================================================================================================================
  943. function fGetAllOutRslt(){
  944. grd_acptlst.clearStatus();
  945. for(var i=1; i < grd_acptlst.rows; i++) {
  946. if(grd_acptlst.valueMatrix(i , grd_acptlst.colRef("sel")) == "Y") {
  947. grd_acptlst.rowStatus(i) = 1;
  948. }
  949. }
  950. var outData = grd_acptlst.getUpdateData();
  951. if(outData == "") {
  952. messageBox("대상자가" , "I004");
  953. }
  954. model.setValue("/root/send/saveallout" , outData);
  955. openLoadingBar("외래결과 ") ;//처리중 화면을 오픈한다.
  956. var ret = submit("TXAHR00203");
  957. closeLoadingBar() ;//처리중 화면을 close한다.
  958. if( ret == true ){
  959. fGetRsltInfo();
  960. }
  961. }
  962. =====================================================================================================================
  963. @desc : 문진내역가져오기
  964. =====================================================================================================================
  965. function fGetInqrCdList(){
  966. // model.removeNodeset(grd_inqrlst.nodeset);
  967. // model.removeNodeset("/root/main/condition/inqrrptid");
  968. var instcd = getUserInfo("dutplceinstcd");
  969. model.setValue("/root/main/condition/instcd",instcd);
  970. model.setValue("/root/main/condition/flag","QRFM");
  971. model.setValue("/root/main/condition/wkdate" , model.getValue("/root/init/send/srchfromdd") );
  972. model.setValue("/root/main/condition/healexamflag" , model.getValue("/root/main/acptinfo/item/healexamflag") );
  973. model.setValue("/root/main/condition/rsrvdd" , model.getValue("/root/main/acptinfo/item/rsrvdd") );
  974. model.setValue("/root/main/condition/rsrvno" , model.getValue("/root/main/acptinfo/item/rsrvno") );
  975. model.resetInstanceNode("/root/send/langlst");
  976. model.copyNode("/root/send/langlst", "/root/main/condition");
  977. submit("TRAHB04201");
  978. // if( submit("TRAHR01003") == true ){
  979. // grd_inqrlst.refresh();
  980. // var cnt = grd_inqrlst.rows;
  981. //
  982. // for( var i = 1 ; i <= cnt ; i++){
  983. // if( model.getValue( grd_inqrlst.nodeset + "[" + i + "]/inptflag") == "i" )//입력모드
  984. // {
  985. // grd_inqrlst.addStatus(i, "insert");
  986. // }
  987. // }
  988. // grd_inqrlst.refresh();
  989. // }
  990. }
  991. ===========================================================================================================================
  992. *문진선택형결과 가져오기
  993. * IN : 문진구분/문진코드/기관코드
  994. =============================================================================================================================
  995. function fGetInqrAnsCdList( vTop ){
  996. var idx = grd_inqrlst.row;
  997. if( idx < 1) return ;
  998. model.makeNode("/root/send/srchinqrflag");
  999. model.makeNode("/root/send/ansinqrcd");
  1000. model.makeNode("/root/send/srchinstcd");
  1001. model.setValue( "/root/send/srchinqrflag" , model.getValue(grd_inqrlst.nodeset + "[" + idx + "]/inqrflag" ) );
  1002. model.setValue( "/root/send/ansinqrcd" , model.getValue(grd_inqrlst.nodeset + "[" + idx + "]/inqrcd" ) );
  1003. model.setValue( "/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
  1004. model.removeNodeset(grd_inqranslst.nodeset);
  1005. ipt_answcd.value = "";
  1006. if( submit("TRAHB00202") == true ) {
  1007. if( vTop != "" ){
  1008. grp_inqrans.attribute("top") = parseInt(vTop);
  1009. }
  1010. grp_inqrans.visible = true;
  1011. model.setFocus("ipt_answcd");
  1012. }
  1013. }
  1014. *======================================================================================================================================
  1015. * 문진답안선택시 gird로 값 setting
  1016. =========================================================================================================================================
  1017. function fSetInqrAns(){
  1018. var idx = grd_inqrlst.row;
  1019. if( idx < 1) return ;
  1020. var ansidx = grd_inqranslst.row;
  1021. if( ansidx < 1 ) return ;
  1022. var old_ans = grd_inqrlst.valueMatrix(idx, col_inqranswcd) ;
  1023. var new_ans = grd_inqranslst.valueMatrix( ansidx, 1);
  1024. if( old_ans == new_ans ) return ;
  1025. grd_inqrlst.valueMatrix(idx, col_inqranswcd) = grd_inqranslst.valueMatrix( ansidx, 1);
  1026. grd_inqrlst.valueMatrix(idx, col_inqranswcnts) = grd_inqranslst.valueMatrix( ansidx, 2);
  1027. if( grd_inqrlst.rowStatus(idx) == 0 ) {
  1028. grd_inqrlst.addStatus(idx, "update");
  1029. }
  1030. grd_inqrlst.refresh();
  1031. }
  1032. *===================================================================================
  1033. @desc : Grid의 선택된 값에 대한 RowStatus 변경, 단일입력 항목 확인
  1034. =====================================================================================
  1035. function fQueryRptGridCheck(rowid)
  1036. {
  1037. // 단일항목 선택인 경우 다른 같은 질문에 대해
  1038. // 다른 답안이 선택 되어 있는가 확인
  1039. // 만약 되어 있다면 N로 바꾸고
  1040. // 바뀐 ROW또한 상태 값을 변경 해야 한다,,
  1041. // 1. 해당로우에 입력형태를 확인
  1042. // 2. 입력 형태가 단일이면
  1043. // 2-1 질문 ID를 읽는다
  1044. // 2-2 그리드를 for로 돌리면서
  1045. // 같은 질문 ID인 경우를 확인하고
  1046. // check 값인 Y인가를 확인한다
  1047. // Y인 행의 값이 현재 넘어온 향의 값과 다르다면
  1048. // N로 바꾸고
  1049. // fQueryRptGridStatusChk(i)를 호출한다
  1050. // 3. 다중인 경우
  1051. // 바로 fQueryRptGridStatusChk(rowid)를 호출해서 상태값만 변경한다.
  1052. var QuerType;
  1053. //QuerType = grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_choitype")) ;
  1054. //model.alert("QuerType"+":"+QuerType);
  1055. var Chtype ;
  1056. var SelRowQuerId = grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_inqrqestid"));
  1057. var SelRowChk = grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_chkbox"));
  1058. var ForRowQuerId;
  1059. var ForRowChk;
  1060. var QuerType;
  1061. // model.alert("SelRowQuerId"+":"+SelRowQuerId)
  1062. // model.alert("SelRowChk"+":"+SelRowChk)
  1063. for( var fRow = 1 ; fRow < grd_amit.rows; fRow++)
  1064. {
  1065. // 그리드의 질문ID를 가지고 온다
  1066. ForRowQuerId = grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_inqrqestid"));
  1067. // model.alert("ForRowQuerId"+":"+ForRowQuerId)
  1068. // For Loop에 의한 질문ID와 선택된 Row의 질문ID가 같은 가를 확인한다.
  1069. if ( SelRowQuerId == ForRowQuerId) {
  1070. // model.alert("dkdkdk1")
  1071. // 같은 질문ID의 질문 항목에 있는 유형 중 질문 인것을 파악 한다.
  1072. if ( grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_qestflag")) == 'Q') {
  1073. // model.alert("dkdkdk2")
  1074. // 유형인 질문인 것의 답안 형태를 가지고 온다
  1075. QuerType = grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_choitype")) ;
  1076. //QuerType = grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_choitype"));
  1077. }
  1078. // model.alert("QuerType1"+":"+QuerType)
  1079. // 단일 인지를 파악 한다
  1080. if ( QuerType == '2' )
  1081. {
  1082. // For Loop에 의해 돌아 가는 행의 선택 값을 가지고 온다
  1083. ForRowChk= grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_chkbox"));
  1084. // model.alert("ForRowChk"+":"+ForRowChk)
  1085. // 현재 행의 값이 'Y'인지를 파악한다
  1086. if ( ForRowChk == 'Y') {
  1087. // model.alert("333")
  1088. // 선택된 행과 현재의(for loop) 행이 같은 행인지 여부를 파악한다
  1089. if ( rowid != fRow ) {
  1090. // 선택된 행과 현재의 행이 다른 행인 경우 현재의 행을 N로 선택하고
  1091. // 현재의 행의 status를 변경한다.
  1092. // model.alert("4444")
  1093. grd_amit.valueMatrix(fRow,grd_amit.colRef("amit_chkbox")) = 'N' ;
  1094. fQueryRptGridStatusChk(fRow);
  1095. } else
  1096. {
  1097. // model.alert("5555")
  1098. // for loop의 행과 선택 행이 같은 행 이므로 Status만 변경한다.
  1099. fQueryRptGridStatusChk(fRow);
  1100. }
  1101. }
  1102. }
  1103. else
  1104. {
  1105. // 단일 선택이 아닌 경우 즉 다중선택인 경우 해당 row의 status를 변경한다
  1106. // model.alert("6666")
  1107. if ( rowid == fRow ) {
  1108. // model.alert("7777")
  1109. fQueryRptGridStatusChk(fRow);
  1110. }
  1111. }
  1112. }
  1113. }
  1114. }
  1115. function fQueryRptGridStatusChk(rowid)
  1116. {
  1117. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_healexamflag")) = opt_healexamflag.value;
  1118. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvdd")) = opt_rsrvdd.value;
  1119. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvno")) = opt_rsrvno.value;
  1120. var CheckV1=grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_chkbit"));
  1121. var CheckV2=grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_chkbox"));
  1122. //model.alert(CheckV1);
  1123. //model.alert(CheckV2);
  1124. if(CheckV1 == 'I') {
  1125. if(CheckV2 =='Y'){
  1126. grd_amit.rowStatus(rowid)=1;
  1127. }else{
  1128. grd_amit.rowStatus(rowid)=0;
  1129. }
  1130. }else{
  1131. if(CheckV2 =='N'){
  1132. grd_amit.rowStatus(rowid)=4;
  1133. }else{
  1134. // grd_amit.rowStatus(rowid)=0;
  1135. if ( grd_amit.valueMatrix(rowid,grd_amit.colRef("amit_inqransw"))!="") {
  1136. grd_amit.rowStatus(rowid)=2;
  1137. } else {
  1138. grd_amit.rowStatus(rowid)=0;
  1139. }
  1140. }
  1141. }
  1142. // 넘겨 받은 rowid의
  1143. // 상태비트와 check를 읽는다
  1144. //
  1145. // 상태가 I인 경우
  1146. // check가 Y라면 상태는 입력이고
  1147. // N라면 조회원래 상태로 변경
  1148. // 상태가 S인 경우
  1149. // N라면 상태값은 삭제
  1150. // Y라면 상태 변화 없음 -> 조회원래 상태로 변경
  1151. // 그리드상태 값을 변경하는 필요...
  1152. }
  1153. ===================================================================================
  1154. @desc : 공통 저장정보관련 초기화
  1155. =====================================================================================
  1156. function fInitSaveData(){
  1157. model.resetInstanceNode("/root/send/save");
  1158. }
  1159. ===================================================================================
  1160. @desc : 검사결과에 따른 값이 공식에 의해서 결과도출
  1161. =====================================================================================
  1162. // 반올림
  1163. function round(val,precision) {
  1164. if(!isNaN(val) && val != Number.POSITIVE_INFINITY) {
  1165. val = val * Math.pow(10,precision);
  1166. val = Math.round(val);
  1167. return val/Math.pow(10,precision);
  1168. }else {
  1169. return ;
  1170. }
  1171. }
  1172. */
  1173. ]]>
  1174. </script>
  1175. </xhtml:head>
  1176. <xhtml:body guideline="1,1195;1,1178;" style="border-left-style:none; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1177. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  1178. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:177px; height:14px; ">[자동판정]환자별 문진등록</caption>
  1179. </group>
  1180. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1194px; height:744px; ">
  1181. <caption id="caption5" style="left:805px; top:212px; width:192px; height:20px; ">* 아래 화살표와 ` 키를 사용하세요</caption>
  1182. <group id="group2" style="left:0px; top:5px; width:1179px; height:90px; vertical-align:top; ">
  1183. <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
  1184. <caption id="caption3" class="search_name" style="left:310px; top:10px; width:86px; height:17px; ">건진일자 :</caption>
  1185. <caption id="caption34" class="search_name" style="left:10px; top:10px; width:117px; height:17px; ">건진상세분류 :</caption>
  1186. <button id="btn_search" class="btn1_letter2" style="left:1113px; top:9px; width:56px; height:22px; ">
  1187. <caption>조회</caption>
  1188. <script type="javascript" ev:event="DOMActivate">
  1189. <![CDATA[
  1190. fGetAcptList();
  1191. model.refresh();
  1192. ]]>
  1193. </script>
  1194. </button>
  1195. <line id="line3" style="x1:1101px; y1:10px; x2:1101px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  1196. <select1 id="cmb_srchhealexamdetlflag" ref="/root/send_04900/srchhealexamdetlflag" class="combo_s_essential" appearance="minimal" style="left:130px; top:10px; width:160px; height:19px; ">
  1197. <choices>
  1198. <itemset nodeset="/root/init/baseinfo/hedetlflaglst/A0069">
  1199. <label ref="cdnm"/>
  1200. <value ref="cdid"/>
  1201. </itemset>
  1202. </choices>
  1203. </select1>
  1204. <input id="ipt_srchfromdd" ref="/root/send_04900/srchfromdd" class="input_s_essential" inputtype="date" style="left:399px; top:10px; width:96px; height:19px; "/>
  1205. <input id="ipt_srchtodd" ref="/root/send_04900/srchtodd" class="input_s_essential" inputtype="date" style="left:519px; top:10px; width:96px; height:19px; ">
  1206. <script type="javascript" ev:event="xforms-value-changed">
  1207. <![CDATA[
  1208. fGetAcptList();
  1209. model.refresh();
  1210. ]]>
  1211. </script>
  1212. </input>
  1213. <input id="ipt_pnm" ref="/root/send_04900/srchhngnm" class="input_default" style="left:850px; top:10px; width:69px; height:19px; "/>
  1214. <input id="ipt_pid" ref="/root/send_04900/srchpid" class="input_default" style="left:745px; top:10px; width:80px; height:19px; ">
  1215. <script type="javascript" ev:event="onkeypress">
  1216. <![CDATA[
  1217. if( event.keyCode != 13) return ;
  1218. inputEnterKey("btn_srchpat","DOMActivate");
  1219. /*if (event.keyCode == "13")
  1220. {
  1221. fGetAcptList();
  1222. model.refresh();
  1223. }*/
  1224. ]]>
  1225. </script>
  1226. </input>
  1227. <caption id="caption36" class="search_name" style="left:655px; top:10px; width:89px; height:17px; ">등록번호 :</caption>
  1228. <caption id="caption37" class="search_no_b" style="left:499px; top:11px; width:12px; height:17px; ">~</caption>
  1229. <button id="btn_srchpat" class="icon_search" style="left:830px; top:10px; width:16px; height:16px; ">
  1230. <caption/>
  1231. <script type="javascript" ev:event="DOMActivate">
  1232. <![CDATA[
  1233. /*
  1234. fSearchPatInfo("SMAHA00100", "pnm", ipt_pnm.currentText , "N", "/root/send_05100/" ,ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
  1235. if( model.getValue(ipt_pid.attribute("ref")) != "" ) fGetAcptList();
  1236. */
  1237. fSearchPatInfo("SMAHA00100", "pid", model.getValue(ipt_pid.attribute("ref")), "N", "/root/send_05100/" ,ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
  1238. if( model.getValue(ipt_pid.attribute("ref")) != "" ) fGetAcptList();
  1239. model.refresh();
  1240. ]]>
  1241. </script>
  1242. </button>
  1243. <caption id="caption38" class="search_name" style="left:655px; top:60px; width:89px; height:17px; ">판정의 :</caption>
  1244. <select1 id="cmb_drid" ref="/root/send_04900/srchdrid" class="combo_s_essential" appearance="minimal" style="left:745px; top:60px; width:105px; height:19px; ">
  1245. <choices>
  1246. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  1247. <label ref="drnm"/>
  1248. <value ref="drid"/>
  1249. </itemset>
  1250. </choices>
  1251. <script type="javascript" ev:event="xforms-value-changed">
  1252. <![CDATA[
  1253. fGetAcptList();
  1254. ]]>
  1255. </script>
  1256. </select1>
  1257. <caption id="caption9" class="search_name" style="left:10px; top:35px; width:97px; height:17px; ">상태구분 :</caption>
  1258. <caption id="caption11" class="search_name" style="left:655px; top:35px; width:89px; height:17px; ">개인/단체:</caption>
  1259. <select1 id="cmb_srchcmpyflag" ref="/root/send_04900/srchcmpyyn" class="combo_s_essential" appearance="minimal" style="left:745px; top:35px; width:50px; height:19px; ">
  1260. <choices>
  1261. <item>
  1262. <label>전체</label>
  1263. <value/>
  1264. </item>
  1265. <item>
  1266. <label>개인</label>
  1267. <value>N</value>
  1268. </item>
  1269. <item>
  1270. <label>단체</label>
  1271. <value>Y</value>
  1272. </item>
  1273. </choices>
  1274. <script type="javascript" ev:event="xforms-value-changed">
  1275. <![CDATA[
  1276. fGetAcptList();
  1277. model.refresh();
  1278. ]]>
  1279. </script>
  1280. </select1>
  1281. <select id="checkbox2" ref="/root/send_04900/srchrsltendyn" overflow="visible" appearance="full" style="left:165px; top:60px; width:50px; height:20px; border-style:none; ">
  1282. <choices>
  1283. <item>
  1284. <label>결과</label>
  1285. <value>Y</value>
  1286. </item>
  1287. </choices>
  1288. </select>
  1289. <select id="checkbox3" ref="/root/send_04900/srchjudgstatflag" overflow="visible" appearance="full" style="left:300px; top:60px; width:60px; height:20px; border-style:none; ">
  1290. <choices>
  1291. <item>
  1292. <label>판정중</label>
  1293. <value>N</value>
  1294. </item>
  1295. </choices>
  1296. </select>
  1297. <select id="checkbox4" ref="/root/send_04900/srchrsltcnststatflag" overflow="visible" appearance="full" style="left:560px; top:60px; width:90px; height:20px; border-style:none; ">
  1298. <choices>
  1299. <item>
  1300. <label>결과상담완료</label>
  1301. <value>Y</value>
  1302. </item>
  1303. </choices>
  1304. </select>
  1305. <select id="checkbox5" ref="/root/send_04900/srchjudgstatflag" overflow="visible" appearance="full" style="left:455px; top:60px; width:100px; height:20px; border-style:none; ">
  1306. <choices>
  1307. <item>
  1308. <label>판정완료(수정)</label>
  1309. <value>S</value>
  1310. </item>
  1311. </choices>
  1312. </select>
  1313. <select id="checkbox6" ref="/root/send_04900/srchrtimeyn" overflow="visible" appearance="full" style="left:100px; top:60px; width:60px; height:20px; border-style:none; ">
  1314. <choices>
  1315. <item>
  1316. <label>검사중</label>
  1317. <value>Y</value>
  1318. </item>
  1319. </choices>
  1320. </select>
  1321. <select id="checkbox7" ref="/root/send_04900/srchstatflag" overflow="visible" appearance="full" style="left:100px; top:35px; width:55px; height:20px; border-style:none; ">
  1322. <choices>
  1323. <item>
  1324. <label>가예약</label>
  1325. <value>A</value>
  1326. </item>
  1327. </choices>
  1328. </select>
  1329. <select id="checkbox8" ref="/root/send_04900/srchstatflag" overflow="visible" appearance="full" style="left:165px; top:35px; width:65px; height:20px; border-style:none; ">
  1330. <choices>
  1331. <item>
  1332. <label>예약보류</label>
  1333. <value>B</value>
  1334. </item>
  1335. </choices>
  1336. </select>
  1337. <select id="checkbox9" ref="/root/send_04900/srchstatflag" overflow="visible" appearance="full" style="left:235px; top:35px; width:60px; height:20px; border-style:none; ">
  1338. <choices>
  1339. <item>
  1340. <label>예약</label>
  1341. <value>C</value>
  1342. </item>
  1343. </choices>
  1344. </select>
  1345. <select id="checkbox10" ref="/root/send_04900/srchstatflag" overflow="visible" appearance="full" style="left:300px; top:35px; width:80px; height:20px; border-style:none; ">
  1346. <choices>
  1347. <item>
  1348. <label>예약취소</label>
  1349. <value>D</value>
  1350. </item>
  1351. </choices>
  1352. </select>
  1353. <select id="checkbox11" ref="/root/send_04900/srchstatflag" overflow="visible" appearance="full" style="left:235px; top:60px; width:75px; height:20px; border-style:none; ">
  1354. <choices>
  1355. <item>
  1356. <label>판정대기</label>
  1357. <value>H</value>
  1358. </item>
  1359. </choices>
  1360. </select>
  1361. <select id="checkbox12" ref="/root/send_04900/srchstatflag" overflow="visible" appearance="full" style="left:380px; top:35px; width:55px; height:20px; border-style:none; ">
  1362. <choices>
  1363. <item>
  1364. <label>접수</label>
  1365. <value>E</value>
  1366. </item>
  1367. </choices>
  1368. </select>
  1369. <select id="checkbox13" ref="/root/send_04900/srchstatflag" overflow="visible" appearance="full" style="left:455px; top:35px; width:85px; height:20px; border-style:none; ">
  1370. <choices>
  1371. <item>
  1372. <label>접수취소</label>
  1373. <value>F</value>
  1374. </item>
  1375. </choices>
  1376. </select>
  1377. <select id="checkbox1" ref="/root/send_04900/srchjudgstatflag" overflow="visible" appearance="full" style="left:380px; top:60px; width:70px; height:20px; border-style:none; ">
  1378. <choices>
  1379. <item>
  1380. <label>판정완료</label>
  1381. <value>Y</value>
  1382. </item>
  1383. </choices>
  1384. </select>
  1385. <select1 id="cmb_place" ref="/root/send_04900/srchhealexamplacecd" appearance="minimal" style="left:885px; top:37px; width:65px; height:19px; ">
  1386. <choices>
  1387. <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
  1388. <label ref="cdnm"/>
  1389. <value ref="cdid"/>
  1390. </itemset>
  1391. </choices>
  1392. </select1>
  1393. <caption id="caption13" class="search_name" style="left:815px; top:37px; width:60px; height:17px; ">장소 :</caption>
  1394. </group>
  1395. <caption id="caption7" class="tit_2" style="left:314px; top:100px; width:151px; height:13px; ">기본사항</caption>
  1396. <line id="line4" class="line_1" style="x1:312px; y1:114px; x2:1178px; y2:114px; "/>
  1397. <line id="line6" class="line_2" style="x1:312px; y1:143px; x2:1178px; y2:143px; "/>
  1398. <caption id="caption16" class="cell_1" style="left:630px; top:145px; width:63px; height:23px; vertical-align:middle; ">패키지명 :</caption>
  1399. <output id="opt_pkgnm" ref="/root/main/patinfo/pkgnm" class="output_fix" style="left:695px; top:147px; width:483px; height:19px; "/>
  1400. <caption id="caption21" class="cell_1" style="left:631px; top:119px; width:73px; height:21px; vertical-align:middle; ">성별/나이 :</caption>
  1401. <caption id="caption22" class="cell_1" style="left:310px; top:145px; width:64px; height:23px; vertical-align:middle; ">건진상태 :</caption>
  1402. <caption id="caption18" class="cell_1" style="left:310px; top:170px; width:65px; height:39px; vertical-align:middle; ">검사추가항목 :</caption>
  1403. <line id="line9" class="line_3" style="x1:311px; y1:210px; x2:1177px; y2:210px; "/>
  1404. <datagrid id="grd_acptlist" nodeset="/root/main/acptlist/item" caption="상태^문진상태구분^문진지^성명^등록번호^성별^나이^검진일^패키지명^개인/단체^판정의^^^^^^^^^^^^^^^^^^^^^^^^^" colsep="^" colwidth="72, 85, 73, 65, 65, 35, 37, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:119px; width:309px; height:620px; ">
  1405. <col disabled="true" ref="statflag" type="combo">
  1406. <choices>
  1407. <item>
  1408. <label>가예약</label>
  1409. <value>A</value>
  1410. </item>
  1411. <item>
  1412. <label>예약보류</label>
  1413. <value>B</value>
  1414. </item>
  1415. <item>
  1416. <label>예약</label>
  1417. <value>D</value>
  1418. </item>
  1419. <item>
  1420. <label>접수</label>
  1421. <value>E</value>
  1422. </item>
  1423. <item>
  1424. <label>검사중</label>
  1425. <value>J</value>
  1426. </item>
  1427. <item>
  1428. <label>결과</label>
  1429. <value>G</value>
  1430. </item>
  1431. <item>
  1432. <label>판정대기</label>
  1433. <value>H</value>
  1434. </item>
  1435. <item>
  1436. <label>판정중</label>
  1437. <value>K</value>
  1438. </item>
  1439. <item>
  1440. <label>판정완료</label>
  1441. <value>I</value>
  1442. </item>
  1443. <item>
  1444. <label>결과상담완료</label>
  1445. <value>L</value>
  1446. </item>
  1447. <item>
  1448. <label>판정완료(수정)</label>
  1449. <value>M</value>
  1450. </item>
  1451. </choices>
  1452. </col>
  1453. <col disabled="true" ref="inqrstatcd" type="combo" style="text-align:left; ">
  1454. <choices>
  1455. <item>
  1456. <label>대기</label>
  1457. <value>N</value>
  1458. </item>
  1459. <item>
  1460. <label>입력중</label>
  1461. <value>S</value>
  1462. </item>
  1463. <item>
  1464. <label>입력완료</label>
  1465. <value>Y</value>
  1466. </item>
  1467. <item>
  1468. <label>문진거부</label>
  1469. <value>G</value>
  1470. </item>
  1471. </choices>
  1472. </col>
  1473. <col ref="inqrrptidnm"/>
  1474. <col ref="hngnm"/>
  1475. <col ref="pid"/>
  1476. <col ref="sex" style="text-align:center; "/>
  1477. <col ref="age" style="text-align:center; "/>
  1478. <col ref="hopedd" format="yyyy-mm-dd"/>
  1479. <col ref="pkgnm"/>
  1480. <col ref="cmpynm"/>
  1481. <col ref="judgdrid" type="combo">
  1482. <choices>
  1483. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  1484. <label ref="drnm"/>
  1485. <value ref="drid"/>
  1486. </itemset>
  1487. </choices>
  1488. </col>
  1489. <col ref="inqrrptid" visibility="hidden"/>
  1490. <!-- 20100723 JHP 기존 인스턴스구조를 조회인스턴스구조로 맞추기 윈한 컬럼 추가 시작 -->
  1491. <col ref="addtestnm" visibility="hidden"/>
  1492. <col ref="judgdd" visibility="hidden"/>
  1493. <col ref="judgwaittermdd" visibility="hidden"/>
  1494. <col ref="rsltcnstdrid" visibility="hidden"/>
  1495. <col ref="rsltcnstrsrvdd" visibility="hidden"/>
  1496. <col ref="rsltcnstflag" visibility="hidden"/>
  1497. <col ref="diagnm" visibility="hidden"/>
  1498. <col ref="sickcd" visibility="hidden"/>
  1499. <col ref="cnstcnts" visibility="hidden"/>
  1500. <col ref="prnttims" visibility="hidden"/>
  1501. <col ref="prntrid" visibility="hidden"/>
  1502. <col ref="healexamflag" visibility="hidden"/>
  1503. <col ref="healexamdetlflag" visibility="hidden"/>
  1504. <col ref="rrgstno1" visibility="hidden"/>
  1505. <col ref="rrgstno2" visibility="hidden"/>
  1506. <col ref="inqrremark" visibility="hidden"/>
  1507. <col ref="instcd" visibility="hidden"/>
  1508. <col ref="rsrvdd" visibility="hidden"/>
  1509. <col ref="rsrvno" visibility="hidden"/>
  1510. <col ref="inqrenddd" visibility="hidden"/>
  1511. <col ref="inqrendid" visibility="hidden"/>
  1512. <col ref="inqrcreatdd" visibility="hidden"/>
  1513. <col ref="inqrcreatid" visibility="hidden"/>
  1514. <col ref="email" visibility="hidden"/>
  1515. <!-- 20100723 JHP 기존 인스턴스구조를 조회인스턴스구조로 맞추기 윈한 컬럼 추가 끝 -->
  1516. <script type="javascript" ev:event="onclick">
  1517. <![CDATA[
  1518. var target = event.target;
  1519. var targetchk = target.substr(0,2);
  1520. if(targetchk == '_$'){
  1521. model.copyNode("/root/main/patinfo" , "/root/main/acptlist/item['"+grd_acptlist.row+"']");
  1522. var inqrrptid = model.getValue("/root/main/patinfo/inqrrptid")
  1523. model.setValue("/root/send_04900/inqrlist/inqrrptid" , inqrrptid);
  1524. fGetInqrCdList(); //문진 콤보박스 셋팅
  1525. model.refresh();
  1526. //화면 하단에 셋팅하는 데이터
  1527. var inqrcreatdd = model.getValue("/root/main/patinfo/inqrcreatdd");
  1528. var inqrcreatid = model.getValue("/root/main/patinfo/inqrcreatid");
  1529. var inqrenddd = model.getValue("/root/main/patinfo/inqrenddd");
  1530. var inqrendid = model.getValue("/root/main/patinfo/inqrendid");
  1531. opt_inqrstat.value = "최초입력일 : " + inqrcreatdd + " " + inqrcreatid + " 최종작성일 : " + inqrenddd + " " + inqrendid ;
  1532. model.resetInstanceNode("/root/main/amitlist");
  1533. grd_amit.clearStatus();
  1534. grd_amit.refresh();
  1535. //환자가 문진을 입력한적이 잇으면 hist에 저장이 되고 그 데이터를 불러와서 콤보박스에 기본 셋팅 , 문진지 선택 해준다.
  1536. cmb_cboinqrid.dispatch("xforms-value-changed");
  1537. }
  1538. // model.refresh();
  1539. //grd_acptlist.row
  1540. /*
  1541. if(grd_acptlst.isCell(event.target) && grd_acptlst.row < grd_acptlst.rows) {
  1542. //grd_rsltlst.visible = false;
  1543. //초기화
  1544. model.removeNodeset("/root/main/list/amqblist");
  1545. model.resetInstanceNode("/root/disply/rptqrcl");
  1546. model.removeNodeset(grd_amit.nodeset);
  1547. model.resetInstanceNode("/root/disply/langlst");
  1548. model.resetInstanceNode("/root/main/condition/inqrrptid");
  1549. fGetRsltInfo();
  1550. model.makeValue("/root/temp/grd_acptlstno", grd_acptlst.row);
  1551. //화면상단정보 설정
  1552. model.makeValue("/root/main/info/rsrvacptinfo/item/statflag","E");
  1553. var sPid = model.getValue("/root/main/acptinfo/item/pid" );
  1554. var sOrddd = model.getValue("/root/main/acptinfo/item/orddd" );
  1555. var iCretno = 1;//model.getValue("/root/main/acptinfo/item/cretno" );
  1556. if( (sPid != "" ) &&
  1557. (sOrddd != "" ) &&
  1558. (iCretno != "" ) &&
  1559. (iCretno != "0" ) ){
  1560. //ahafSetScreenTopPatInfo( sPid, sOrddd, iCretno );
  1561. }
  1562. }
  1563. */
  1564. ]]>
  1565. </script>
  1566. <script type="javascript" ev:event="onaftersort">
  1567. <![CDATA[
  1568. grd_acptlist.gridToInstance();
  1569. // grd_acptlst.gridToInstance();
  1570. ]]>
  1571. </script>
  1572. <script type="javascript" ev:event="onmousedown">
  1573. <![CDATA[
  1574. /*
  1575. if(event.button == 3) {
  1576. if(isDataCell()) {
  1577. setPopupMenu("grd_acptlst", false, "/root/temp/popupmenu/item", "name", "func");
  1578. }
  1579. }
  1580. */
  1581. ]]>
  1582. </script>
  1583. <script type="javascript" ev:event="DOMFocusOut">
  1584. <![CDATA[
  1585. // window.setPopupMenu(false);
  1586. ]]>
  1587. </script>
  1588. </datagrid>
  1589. <caption id="caption15" class="tit_2" style="left:5px; top:100px; width:151px; height:13px; ">문진입력 리스트</caption>
  1590. <line id="line8" class="line_1" style="x1:0px; y1:114px; x2:309px; y2:114px; "/>
  1591. <output id="opt_sex" ref="/root/main/patinfo/sex" class="output_fix" style="left:707px; top:121px; width:25px; height:19px; "/>
  1592. <output id="opt_hngnm" ref="/root/main/patinfo/hngnm" class="output_fix" style="left:523px; top:121px; width:105px; height:19px; "/>
  1593. <caption id="caption14" class="cell_1" style="left:311px; top:119px; width:64px; height:23px; vertical-align:middle; ">등록번호 :</caption>
  1594. <caption id="caption24" class="cell_1" style="left:455px; top:119px; width:64px; height:23px; vertical-align:middle; ">성 명 :</caption>
  1595. <output id="opt_pid" ref="/root/main/patinfo/pid" class="output_fix" style="left:378px; top:121px; width:74px; height:19px; "/>
  1596. <line id="line2" class="line_1" style="x1:495px; y1:232px; x2:1178px; y2:232px; "/>
  1597. <caption id="caption4" class="tit_2" style="left:314px; top:219px; width:126px; height:14px; ">문진상세</caption>
  1598. <button id="btn_savepatinfo" class="btn5_letter4" style="left:1112px; top:720px; width:64px; height:19px; ">
  1599. <caption>문진저장</caption>
  1600. <script type="javascript" ev:event="DOMActivate">
  1601. <![CDATA[
  1602. var chk = messageBox("예(문진완료), 아니오(일부입력), 취소", "S999");
  1603. if( chk == 6 || chk ==7) { //예6 , 아니오7 , 취소2
  1604. model.removenode("/root/send_04900/savedata/amitlist");
  1605. model.makeNode("/root/send_04900/savedata/amitlist");
  1606. // 20100728 JHP 문진지별 질문내용에 변경된 내용이 없을때 저장을 하지 않는다.
  1607. //model.setValue("/root/send_04900/savedata/amitlist", grd_amit.getUpdateData());
  1608. model.setValue("/root/send_04900/savedata/amitlist", getGridUpdateData(grd_amit));
  1609. if(model.getValue("/root/send_04900/savedata/amitlist") == ""){
  1610. messageBox("문진지별 질문내용에 변경된내용이 없습니다. 저장 ","E001");
  1611. return;
  1612. }
  1613. if(chk == 6){inqrstatcd = 'Y';}
  1614. else if(chk == 7){inqrstatcd = 'S';}
  1615. model.setValue("/root/send_04900/inqrlist/inqrstatcd", inqrstatcd);
  1616. fHistSaveData(inqrstatcd); //이력처리
  1617. submit("TXAHB04901",false);
  1618. //저장이 올바로 되면
  1619. if(model.getValue("/root/temp/item/endyn") == 'Y'){
  1620. finit(); //저장후 대기자 리스트만 남겨두고 초기화
  1621. fGetAcptList();//환자 재조회--최종 수정자 때문에
  1622. grd_acptlist.dispatch("ondblclick");
  1623. }
  1624. model.refresh();
  1625. }
  1626. ]]>
  1627. </script>
  1628. </button>
  1629. <caption id="caption1" class="cell_1" style="left:760px; top:120px; width:64px; height:23px; vertical-align:middle; ">건진일 :</caption>
  1630. <output id="opt_hopedd" ref="/root/main/patinfo/hopedd" class="output_fix" format="yyyy-mm-dd" style="left:827px; top:122px; width:74px; height:19px; "/>
  1631. <caption id="caption2" class="cell_1" style="left:455px; top:145px; width:64px; height:23px; vertical-align:middle; ">문진상태 :</caption>
  1632. <select1 id="cmb_inqrflag" ref="/root/main/patinfo/inqrstatcd" class="combo_default" disabled="true" appearance="minimal" style="left:523px; top:147px; width:105px; height:19px; background-color:#e2e2f5; ">
  1633. <choices>
  1634. <item>
  1635. <label>대기</label>
  1636. <value>N</value>
  1637. </item>
  1638. <item>
  1639. <label>입력중</label>
  1640. <value>S</value>
  1641. </item>
  1642. <item>
  1643. <label>입력완료</label>
  1644. <value>Y</value>
  1645. </item>
  1646. <item>
  1647. <label>문진거부</label>
  1648. <value>G</value>
  1649. </item>
  1650. </choices>
  1651. </select1>
  1652. <select1 id="cmb_cboinqrid" ref="/root/send_04900/inqrlist/inqrrptid" visibility="visible" appearance="minimal" style="left:387px; top:212px; width:105px; height:19px; ">
  1653. <choices>
  1654. <itemset nodeset="/root/init/langlst">
  1655. <label ref="cdnm"/>
  1656. <value ref="cdid"/>
  1657. </itemset>
  1658. </choices>
  1659. <script type="javascript" ev:event="xforms-value-changed">
  1660. <![CDATA[
  1661. if( model.getValue("/root/main/patinfo/inqrrptid") != model.getValue("/root/send_04900/inqrlist/inqrrptid")
  1662. && model.getValue("/root/main/patinfo/inqrrptid") != '-'){
  1663. messageBox("해당 환자는 작성중이거나 작성 완료된 문진지가 있습니다" , "I999");
  1664. }
  1665. fRetriveReportQuryClsf();
  1666. model.refresh();
  1667. // cboinqrid.refresh();
  1668. ]]>
  1669. </script>
  1670. </select1>
  1671. <textarea id="txt_testnm" ref="/root/main/patinfo/addtestnm" dragmode="true" scroll="vertical" editable="false" style="left:378px; top:170px; width:250px; height:40px; background-color:#e2e2f5; "/>
  1672. <caption id="caption8" class="tit_2" style="left:500px; top:219px; width:126px; height:13px; ">문진지별 질문내용</caption>
  1673. <line id="line1" class="line_1" style="x1:310px; y1:232px; x2:490px; y2:232px; "/>
  1674. <treeview id="trvclsf" ref="/root/main/list/treevalue" buttoncolor="#ff00ff" expandedimage="tree_select.bmp" hasbuttons="true" hasimages="true" haslines="true" image="tree_normal.bmp" itemsettype="depth" linecolor="#0000ff" singleexpand="false" depth="3" style="left:310px; top:235px; width:180px; height:503px; font-family:돋움; ">
  1675. <itemset nodeset="/root/init/rptqrcl">
  1676. <label ref="ajclsnm"/>
  1677. <value ref="ajclscd"/>
  1678. <depth ref="trdpth"/>
  1679. </itemset>
  1680. <script type="javascript" ev:event="onclick">
  1681. <![CDATA[
  1682. if(checkOpener()){ //팝업이면 데이터 셋팅을 변경한후에 조회
  1683. var SMAHB04900_PARM = opener.javascript.getParameter("SMAHB04900_PARM");
  1684. var array_parm = SMAHB04900_PARM.split("▦");
  1685. }else{
  1686. var array_parm = "";
  1687. }
  1688. var item = trvclsf.item(trvclsf.selectedIndex);
  1689. var iRow = item.index + 1;
  1690. if( trvclsf.selectedindex == -1 ){
  1691. alert("해당 아이템을 선택하세요");
  1692. }else{
  1693. // 20100722 JHP 메인창으로 열엇을때 array_parm[8] 이값이 없기때문에 if문 타지를 않는다. 변경함.
  1694. if(array_parm[8] != 'Y'){//저장버튼들 비활성화되면서 조회기능만이므로 다음 메세지 나오지 않음.
  1695. var updtdata =getGridUpdateData(grd_amit);
  1696. if(updtdata !=""){
  1697. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 저장하시고 조회작업을","Q003");
  1698. if (ret == 6) {
  1699. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_healexamflag")) = model.getValue("/root/main/patinfo/healexamflag");
  1700. /// grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvdd")) = opt_rsrvdd.value;
  1701. // grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvno")) = opt_rsrvno.value;
  1702. model.makeNode("/root/send_04900/savedata/amitlist");
  1703. model.setValue("/root/send_04900/savedata/amitlist", grd_amit.getUpdateData());
  1704. submit("TXAHB04901",false);
  1705. }
  1706. }
  1707. }
  1708. var selectitem = trvclsf.item(trvclsf.selectedindex).value;
  1709. // 20100726 JHP 트리뷰 하위구조 있으면 해당 건은 조회하지 않는다.(기존꺼는 주석처리)
  1710. fChkView();
  1711. /*
  1712. if( model.getValue("/root/init/rptqrcl[" + iRow +"]/trdpth") >1){
  1713. fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
  1714. grd_amit.refresh();
  1715. fCheckTranFlag();
  1716. grd_amit.refresh();
  1717. }else{//의료문진등 레벨이 1인걸 선택하면 자동으로 다음 선택됨.
  1718. btn_next.dispatch("DOMActivate");
  1719. }
  1720. */
  1721. //setTree(grd_amit, 3, 9, 3); -- 사용은 가능하나 이거 사용하면 입력 속도 느릴꺼라 예상됨.
  1722. model.refresh();
  1723. //전립선 금액 계산 때문에 for문 실행체크함.
  1724. if(selectitem == "001007000"){ //질환관련 문제
  1725. for( j = 1 ; j <= getNodesetCount("/root/main/amitlist") ; j++){
  1726. var inqrqestid_j = model.getValue("/root/main/amitlist['"+ j+"']/amit_inqrqestid");
  1727. var amit_chkbox = model.getValue("/root/main/amitlist['"+ j+"']/amit_chkbox");
  1728. if( (inqrqestid_j == '537' ||inqrqestid_j == '538' ||inqrqestid_j == '539' ||inqrqestid_j == '540' ||inqrqestid_j == '541' ||inqrqestid_j == '542' ||inqrqestid_j == '543')
  1729. && (amit_chkbox == 'Y')){
  1730. var point = model.getValue("/root/main/amitlist['"+ j+"']/amit_answreqno");
  1731. var point_i = (parseInt(point) -1);
  1732. model.setValue("/root/point001007000/p"+ inqrqestid_j , point_i );
  1733. }
  1734. if( inqrqestid_j == '544' ){
  1735. model.setValue("/root/point001007000/psum_row" , j);
  1736. }
  1737. }//for end
  1738. // 20100723 JHP 처음 조회 했을때 문진지별 질문내용에 계산되는 부분에 처음 계산을 하게끔 계산로직 태운다.
  1739. fFirstSumChk();
  1740. }//001007000 end
  1741. }
  1742. ]]>
  1743. </script>
  1744. </treeview>
  1745. <output id="opt_healexamflag" ref="/root/main/acptinfo/item/healexamflag" class="output_fix" visibility="hidden" style="left:975px; top:95px; width:65px; height:19px; "/>
  1746. <output id="opt_rsrvdd" ref="/root/main/acptinfo/item/rsrvdd" class="output_fix" visibility="hidden" style="left:1045px; top:95px; width:65px; height:19px; "/>
  1747. <output id="opt_rsrvno" ref="/root/main/acptinfo/item/rsrvno" class="output_fix" visibility="hidden" style="left:1113px; top:95px; width:65px; height:19px; "/>
  1748. <button id="btn_next" class="btn2_letter4" style="left:735px; top:212px; width:64px; height:19px; ">
  1749. <caption>다음분류</caption>
  1750. <script type="javascript" ev:event="DOMActivate">
  1751. <![CDATA[
  1752. // 20100723 JHP 다음분류에서 오류 발생하여 수정 정리
  1753. // 1. 그리드에 업데이트 내용이 있어서 예를 누르면 저장하고 다음분류로 넘어간다.
  1754. // 2 그리드에 업데이트 내용이 있어도 아니오를 누르면 그냥 넘어간다. .
  1755. // 3. 그리드에 업데이트 내용이 없으면 그냥 넘어간다.
  1756. var updtdata =getGridUpdateData(grd_amit);
  1757. if(updtdata !=""){
  1758. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 저장하시고 조회작업을","Q003");
  1759. //if (ret == 7) {return false;}
  1760. if (ret == 6) {
  1761. model.makeNode("/root/send_04900/savedata/amitlist");
  1762. model.setValue("/root/send_04900/savedata/amitlist", grd_amit.getUpdateData());
  1763. var item = trvclsf.item(trvclsf.selectedIndex);
  1764. var iRow = item.index + 1;
  1765. if(model.getValue("/root/init/rptqrcl[" + iRow +"]/trdpth") != 1) {
  1766. submit("TXAHB04901",false);
  1767. }
  1768. }
  1769. }
  1770. // grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_healexamflag")) = opt_healexamflag.value;
  1771. /// grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvdd")) = opt_rsrvdd.value;
  1772. // grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvno")) = opt_rsrvno.value;
  1773. trvclsf.select(trvclsf.selectedindex+1);
  1774. // 20100726 JHP 트리뷰 하위구조 있으면 해당 건은 조회하지 않는다.(기존꺼는 주석처리)
  1775. fChkView();
  1776. //fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
  1777. model.refresh();
  1778. ]]>
  1779. </script>
  1780. </button>
  1781. <button id="button5" class="icon_pre_month" style="left:630px; top:215px; width:16px; height:16px; ">
  1782. <caption/>
  1783. <script type="javascript" ev:event="DOMActivate">
  1784. <![CDATA[
  1785. fGridWidthcontrol("amit" ,"W");
  1786. ]]>
  1787. </script>
  1788. </button>
  1789. <button id="button8" class="icon_next_month" style="left:650px; top:215px; width:16px; height:16px; ">
  1790. <caption/>
  1791. <script type="javascript" ev:event="DOMActivate">
  1792. <![CDATA[
  1793. fGridWidthcontrol("amit" ,"N");
  1794. ]]>
  1795. </script>
  1796. </button>
  1797. <output id="output1" ref="/root/main/patinfo/age" class="output_fix" style="left:732px; top:121px; width:25px; height:19px; "/>
  1798. <caption id="caption12" class="cell_1" style="left:630px; top:170px; width:64px; height:39px; vertical-align:middle; ">
  1799. <![CDATA[문진메모 :
  1800. ]]>
  1801. </caption>
  1802. <line id="line5" class="line_2" style="x1:312px; y1:169px; x2:1178px; y2:169px; "/>
  1803. <button id="btn_updt" class="btn5_letter2" style="left:1067px; top:720px; width:42px; height:19px; ">
  1804. <caption>수정</caption>
  1805. <script type="javascript" ev:event="DOMActivate">
  1806. <![CDATA[
  1807. // if( messageBox("문진을 ", "Q002") == 6 ) {
  1808. // fInitSaveData();
  1809. // fSaveRslt("I"); //fSaveRsltInfo
  1810. // gridMergeRow(grd_rsltlst);
  1811. // fgrdImage(grd_rsltlst)
  1812. //
  1813. // }
  1814. // model.setValue("/root/send/amitlist/amit_healexamflag" , model.getValue("/root/init/send/srchfromdd") );
  1815. // model.setValue("/root/main/list/amitlist/amit_healexamflag" , model.getValue("/root/main/acptinfo/item/healexamflag") );
  1816. // model.setValue("/root/main/list/amitlist/amit_rsrvdd" , model.getValue("/root/main/acptinfo/item/rsrvdd") );
  1817. // model.setValue("/root/main/list/amitlist/amit_rsrvno" , model.getValue("/root/main/acptinfo/item/rsrvno") );
  1818. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_healexamflag")) = opt_healexamflag.value;
  1819. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvdd")) = opt_rsrvdd.value;
  1820. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_rsrvno")) = opt_rsrvno.value;
  1821. // model.setValue("/root/send_04900/savedata/amitlist", grd_amit.getUpdateData());
  1822. submit("TXAHB04901");
  1823. fHistSaveData('S'); //입력중
  1824. // fGetRsltPatList();
  1825. // fRetriveReportQuryClsf();
  1826. fRetriveQuryReport(trvclsf.item(trvclsf.selectedindex).value);
  1827. model.refresh();
  1828. ]]>
  1829. </script>
  1830. </button>
  1831. <textarea id="textarea1" ref="/root/main/patinfo/inqrremark" style="left:695px; top:170px; width:483px; height:40px; "/>
  1832. <select1 id="cmb_statflag" ref="/root/main/patinfo/statflag" class="combo_default" disabled="true" appearance="minimal" style="left:378px; top:147px; width:74px; height:19px; background-color:#e2e2f5; ">
  1833. <choices>
  1834. <item>
  1835. <label>가예약</label>
  1836. <value>A</value>
  1837. </item>
  1838. <item>
  1839. <label>예약보류</label>
  1840. <value>B</value>
  1841. </item>
  1842. <item>
  1843. <label>예약</label>
  1844. <value>D</value>
  1845. </item>
  1846. <item>
  1847. <label>접수</label>
  1848. <value>E</value>
  1849. </item>
  1850. <item>
  1851. <label>검사중</label>
  1852. <value>J</value>
  1853. </item>
  1854. <item>
  1855. <label>결과</label>
  1856. <value>G</value>
  1857. </item>
  1858. <item>
  1859. <label>판정대기</label>
  1860. <value>H</value>
  1861. </item>
  1862. <item>
  1863. <label>판정중</label>
  1864. <value>K</value>
  1865. </item>
  1866. <item>
  1867. <label>판정완료</label>
  1868. <value>I</value>
  1869. </item>
  1870. <item>
  1871. <label>결과상담완료</label>
  1872. <value>L</value>
  1873. </item>
  1874. <item>
  1875. <label>판정완료(수정)</label>
  1876. <value>M</value>
  1877. </item>
  1878. </choices>
  1879. </select1>
  1880. <select1 id="combo1" ref="/root/main/condition/inqrrptid" visibility="visible" appearance="minimal" style="left:877px; top:720px; width:115px; height:19px; ">
  1881. <choices>
  1882. <itemset nodeset="/root/init/A0008list/A0008">
  1883. <label ref="cdnm"/>
  1884. <value ref="cdid"/>
  1885. </itemset>
  1886. </choices>
  1887. <script type="javascript" ev:event="xforms-value-changed">
  1888. <![CDATA[
  1889. fRetriveReportQuryClsf();
  1890. // fRetriveQuryReport();
  1891. cmb_cboinqrid.refresh();
  1892. ]]>
  1893. </script>
  1894. </select1>
  1895. <button id="btn_gubu" class="btn5_letter4" style="left:1000px; top:720px; width:64px; height:19px; ">
  1896. <caption>문진거부</caption>
  1897. <script type="javascript" ev:event="DOMActivate">
  1898. <![CDATA[
  1899. var rtn = messageBox("문진을 거부 하셨습니까? ", "Q999");
  1900. if(rtn == 6){
  1901. fHistSaveData('G') ;
  1902. // fInqrExeStat();
  1903. model.resetInstanceNode("/root/main/patinfo");
  1904. model.resetInstanceNode("/root/main/amitlist");
  1905. model.resetInstanceNode("/root/main/list/treevalue");
  1906. fGetAcptList();
  1907. model.refresh();
  1908. }
  1909. ]]>
  1910. </script>
  1911. </button>
  1912. <output id="opt_inqrstat" style="left:495px; top:720px; width:380px; height:19px; "/>
  1913. <button id="btn_init" class="btn2_letter3" style="left:1125px; top:212px; width:53px; height:19px; ">
  1914. <caption>초기화</caption>
  1915. <script type="javascript" ev:event="DOMActivate">
  1916. <![CDATA[
  1917. finit();
  1918. model.refresh();
  1919. ]]>
  1920. </script>
  1921. </button>
  1922. <button id="button1" class="btn2_letter4" style="left:670px; top:212px; width:69px; height:19px; ">
  1923. <caption>전체보기</caption>
  1924. <script type="javascript" ev:event="DOMActivate">
  1925. <![CDATA[
  1926. fGridWidthcontrol("amit" ,"A");
  1927. ]]>
  1928. </script>
  1929. </button>
  1930. <caption id="caption10" class="cell_1" style="left:905px; top:120px; width:50px; height:23px; vertical-align:middle; ">e-mail :</caption>
  1931. <input id="input1" ref="/root/main/patinfo/email" style="left:957px; top:122px; width:175px; height:19px; "/>
  1932. <button id="button2" class="btn5_letter2" style="left:1136px; top:122px; width:42px; height:19px; ">
  1933. <caption>저장</caption>
  1934. <script type="javascript" ev:event="onclick">
  1935. <![CDATA[
  1936. model.makeValue("/root/main/patinfo/savetable",'E');
  1937. submit("TXAHB04905", false);
  1938. fGetAcptList();
  1939. model.refresh();
  1940. ]]>
  1941. </script>
  1942. </button>
  1943. <button id="button3" class="btn5_letter2" style="left:645px; top:190px; width:42px; height:19px; ">
  1944. <caption>저장</caption>
  1945. <script type="javascript" ev:event="onclick">
  1946. <![CDATA[
  1947. model.makeValue("/root/main/patinfo/savetable",'M');
  1948. submit("TXAHB04905", false);
  1949. fGetAcptList();
  1950. model.refresh();
  1951. ]]>
  1952. </script>
  1953. </button>
  1954. <datagrid id="grd_amit" nodeset="/root/main/amitlist" autoresize="true" caption="기관코드^문진지ID^레벨^문항ID^질문번호^유형^유형구분^제목^질문내용^답안형태^선택^디폴트^필수^서술형답안^추가질문1^추가답안1^추가질문2^추가답안2^추가질문3^추가답안3^시작일^종료일^사용여부^출력순서^최초등록자^최종수정자^옵션^질문chk^문진chket^언어^건진구분^건진상세구분^예약일자^예약번호^답안ID^최종수정자^최종수정일시" colsep="^" colwidth="0, 0, 41, 49, 73, 100, 41, 100, 346, 61, 35, 40, 39, 100, 100, 100, 100, 100, 100, 100, 72, 70, 70, 70, 70, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" rowheader="update" rowsep="|" style="left:495px; top:237px; width:683px; height:478px; ">
  1955. <col ref="amit_instcd" visibility="hidden"/>
  1956. <col ref="amit_inqrrptid" visibility="hidden"/>
  1957. <col ref="amit_level"/>
  1958. <col ref="amit_inqrqestid"/>
  1959. <col ref="amit_qestno" type="input" visibility="hidden"/>
  1960. <col disabled="true" ref="amit_qestflagnm"/>
  1961. <col disabled="true" ref="amit_qestflag" visibility="hidden"/>
  1962. <col ref="amit_titl" visibility="hidden"/>
  1963. <col ref="amit_cnts"/>
  1964. <col disabled="true" ref="amit_choitype" type="combo">
  1965. <choices>
  1966. <item>
  1967. <label>자유입력</label>
  1968. <value>1</value>
  1969. </item>
  1970. <item>
  1971. <label>단일선택</label>
  1972. <value>2</value>
  1973. </item>
  1974. <item>
  1975. <label>다중선택</label>
  1976. <value>3</value>
  1977. </item>
  1978. </choices>
  1979. </col>
  1980. <col checkvalue="Y,N" ref="amit_chkbox" type="checkbox"/>
  1981. <col ref="amit_defaulyn"/>
  1982. <col checkvalue="Y,N" disabled="true" ref="amit_essnchoiflag" type="checkbox"/>
  1983. <col ref="amit_inqransw" type="input"/>
  1984. <col ref="amit_addqest1"/>
  1985. <col ref="amit_addansw1" type="input"/>
  1986. <col ref="amit_addqest2"/>
  1987. <col ref="amit_addansw2" type="input"/>
  1988. <col ref="amit_addqest3"/>
  1989. <col ref="amit_addansw3" type="input"/>
  1990. <col ref="amit_fromdd" visibility="hidden"/>
  1991. <col ref="amit_todd" visibility="hidden"/>
  1992. <col checkvalue="Y,N" ref="amit_useyn" type="checkbox" visibility="hidden"/>
  1993. <col ref="amit_prnseq" type="input" visibility="hidden" style="text-align:center; "/>
  1994. <col ref="amit_fstrgstrid" visibility="hidden"/>
  1995. <col ref="amit_lastupdtrid" visibility="hidden"/>
  1996. <col ref="amit_chkbit" visibility="hidden"/>
  1997. <col ref="amit_chkinqrqestid" visibility="hidden"/>
  1998. <col ref="amit_chkbox2" visibility="hidden"/>
  1999. <col ref="amit_langflag" visibility="hidden"/>
  2000. <col ref="amit_healexamflag" visibility="hidden"/>
  2001. <col ref="amit_healexamdetlflag" visibility="hidden"/>
  2002. <col ref="amit_rsrvdd" visibility="hidden"/>
  2003. <col ref="amit_rsrvno" visibility="hidden"/>
  2004. <col ref="amit_answreqno" visibility="hidden"/>
  2005. <col ref="amit_lastupdtrid"/>
  2006. <col ref="amit_lastupdtdt"/>
  2007. <script type="javascript" ev:event="onclick">
  2008. <![CDATA[
  2009. if( grd_amit.col == grd_amit.colRef("amit_chkbox") && model.getValue("/root/main/amitlist['"+grd_amit.row +"']/amit_qestflag" ) == 'A'){
  2010. var rowid = grd_amit.row;
  2011. fQueryRptGridCheck(rowid);
  2012. fQueryRptGridStatusChk(rowid);
  2013. //순서에따라 점수를 산출하기로 했고 답안에 대해서 순서변경이 절대 없기로 약속함(임미경)
  2014. //전립선 질환 점수 합계
  2015. var inqrqestid_j = model.getValue("/root/main/amitlist['"+ rowid+"']/amit_inqrqestid");
  2016. // var amit_chkbox = model.getValue("/root/main/amitlist['"+ j+"']/amit_chkbox");
  2017. if( (inqrqestid_j == '537' ||inqrqestid_j == '538' ||inqrqestid_j == '539' ||inqrqestid_j == '540' ||inqrqestid_j == '541' ||inqrqestid_j == '542' ||inqrqestid_j == '543')){
  2018. // && (amit_chkbox == 'Y')){
  2019. var point = model.getValue("/root/main/amitlist['"+ rowid+"']/amit_answreqno");
  2020. var point_i = (parseInt(point) -1);
  2021. model.setValue("/root/point001007000/p"+ inqrqestid_j , point_i );
  2022. // 최초 셋팅은 질환관련 증상을 선택하면 값들을 셋팅한다.
  2023. //선택시마다 값을 변경해 준다.
  2024. var sum_point = parseInt(model.getValue("/root/point001007000/p537"))
  2025. + parseInt(model.getValue("/root/point001007000/p538") )
  2026. + parseInt(model.getValue("/root/point001007000/p539") )
  2027. + parseInt(model.getValue("/root/point001007000/p540") )
  2028. + parseInt(model.getValue("/root/point001007000/p541") )
  2029. + parseInt(model.getValue("/root/point001007000/p542") )
  2030. + parseInt(model.getValue("/root/point001007000/p543") )
  2031. var row_id = model.getValue("/root/point001007000/psum_row") ;
  2032. model.setValue("/root/main/amitlist['"+ row_id + "']/amit_addansw1" , sum_point);
  2033. var check_box = model.getValue("/root/main/amitlist['"+ row_id +"']/amit_chkbox");
  2034. if(check_box == "Y"){
  2035. grd_amit.rowStatus(row_id)=2; //업데이트
  2036. }else{
  2037. grd_amit.rowStatus(row_id)=1;
  2038. model.setValue("/root/main/amitlist['"+ row_id +"']/amit_chkbox" , 'Y');
  2039. }
  2040. }
  2041. }
  2042. ]]>
  2043. </script>
  2044. <script type="javascript" ev:event="xforms-value-changed">
  2045. <![CDATA[
  2046. if( grd_amit.col == grd_amit.colRef("amit_inqransw") || grd_amit.col == grd_amit.colRef("amit_addansw1")
  2047. || grd_amit.col == grd_amit.colRef("amit_addansw2") || grd_amit.col == grd_amit.colRef("amit_addansw3")){
  2048. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_chkbox")) = 'Y' ;
  2049. // grd_amit.rowStatus(grd_amit.row)=1;
  2050. var rowid = grd_amit.row;
  2051. fQueryRptGridCheck(rowid);
  2052. fQueryRptGridStatusChk(rowid);
  2053. }
  2054. ]]>
  2055. </script>
  2056. <script type="javascript" ev:event="onkeypress">
  2057. <![CDATA[
  2058. if( grd_amit.col == grd_amit.colRef("amit_chkbox") && model.getValue("/root/main/amitlist['"+grd_amit.row +"']/amit_qestflag" ) == 'A'){
  2059. if(event.keyCode == '96'){ // 96은 `키 임.
  2060. var value = "";
  2061. if(grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_chkbox")) == 'Y'){
  2062. value = 'N';
  2063. }else{
  2064. value = 'Y';
  2065. }
  2066. grd_amit.valueMatrix(grd_amit.row, grd_amit.colRef("amit_chkbox")) = value ;
  2067. fQueryRptGridCheck(grd_amit.row);
  2068. fQueryRptGridStatusChk(grd_amit.row);
  2069. }
  2070. }
  2071. ]]>
  2072. </script>
  2073. </datagrid>
  2074. </group>
  2075. <script type="javascript" ev:event="onkeydown">
  2076. <![CDATA[
  2077. //F7 저장 단축키
  2078. if(event.keyCode == 118) {
  2079. if(grd_acptlst.row < 0) {
  2080. messageBox("대기자를","C002");
  2081. }else {
  2082. save.dispatch("DOMActivate");
  2083. }
  2084. }
  2085. //F9 다음 사람 단축키
  2086. if(event.keyCode == 120) {
  2087. if(grd_acptlst.row < 0) {
  2088. grd_acptlst.row = 1;
  2089. grd_acptlst.dispatch("onclick");
  2090. }else if(grd_acptlst.row == grd_acptlst.rows -1) {
  2091. messageBox("다음 대기자가","I004");
  2092. return;
  2093. }else {
  2094. grd_acptlst.row = grd_acptlst.row + 1;
  2095. grd_acptlst.dispatch("onclick");
  2096. }
  2097. }
  2098. //F10 다음 검사 단축키
  2099. if(event.keyCode == 121) {
  2100. if(grd_rsltlst.row < 0) {
  2101. grd_rsltlst.row = 1;
  2102. }else if(grd_rsltlst.row == grd_rsltlst.rows - 1){
  2103. messageBox("다음 검사내역이","I004");
  2104. }else {
  2105. grd_rsltlst.row = grd_rsltlst.row + 1;
  2106. }
  2107. if(!grd_rsltlst.isReadOnly(grd_rsltlst.row , grd_rsltlst.colRef("testrsltcnts"))) {
  2108. grd_rsltlst.editCell();
  2109. }
  2110. }
  2111. ]]>
  2112. </script>
  2113. </xhtml:body>
  2114. </xhtml:html>